Hi;<br>I have this code:<br><br>#!/usr/bin/python<br><br>import sys, os, string<br>import cgitb; cgitb.enable()<br>import cgi<br>cwd = os.getcwd()<br>dirs = string.split(cwd, '/')<br>dirs = dirs[1:-1]<br>backLevel = '/' + string.join(dirs, '/')<br>
sys.path.append(cwd)<br>sys.path.append(backLevel)<br>import string<br>form = cgi.FieldStorage()<br>// all the fields here<br>subject = 'Order For Maya 2012'<br>msg = 'First Name: %s\nLast Name: %s\nEmail Address: %s\nAddress2: %s, City: %s\nState: %s\nCountry: %s\nZip: %s\nPhone: %s\nFax: %s\nMessage: %s\n' % (firstNameText, lastNameText, emailText, addrText, addr2Te<br>
xt, cityText, stateText, countryText, zipText, faxText, messageText)<br>### LOOK AT THESE TWO LINES<br>ourEmail = '<a href="mailto:myemailaddr@gmail.com">myemailaddr@gmail.com</a>'<br>ourEmail = '<a href="mailto:qqq@xxx.com">qqq@xxx.com</a>'<br>
<br>def my_mail():<br>  emailOne()<br>  emailTwo()<br><br>def emailOne():<br>  from simplemail import Email<br>  Email(<br>      from_address = ourEmail,<br>      to_address = emailText,<br>      subject = 'Thank you for your order!',<br>
      message = msg<br>  ).send()<br><br>def emailTwo():<br>  from simplemail import Email<br>  Email(<br>  from simplemail import Email<br>  Email(<br>#      from_address = emailText,<br>#      to_address = ourEmail,<br>
      from_address = ourEmail,<br>      to_address = emailText,<br>      subject = 'Order for Maya 2012',<br>      message = msg<br>  ).send()<br><br>print '''Content-type: text/html<br><br><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><br>
<html><br><head><br><title></title><br><link rel="stylesheet" type="text/css" href="../../css/style.css"><br></head><br><body>'''<br>my_mail()<br>
print '''<br></body><br></html><br>'''<br><br>Now what's absolutely crazy about this is that if I use my online form and enter my gmail address I get the email confirmations. However, if I get rid of that garbage value for ourEmail and use the other one which is the _very_same_gmail_address I get nothing!! No email. Ditto if I uncomment those lines in emailTwo and delete the next two lines. What on earth could be doing this???<br>
TIA,<br>Beno<br>