Hi;<div>I have the following code:</div><div><br></div><div><div>def my_mail():</div><div> user, passwd, db, host = login()</div><div> database = MySQLdb.connect(host, user, passwd, db)</div><div> cursor= database.cursor()</div>
<div> ourEmail1 = '<a href="mailto:marilyn@globalsolutionsgroup.vi">marilyn@globalsolutionsgroup.vi</a>'</div><div> ourEmail1 = '<a href="mailto:phil@globalsolutionsgroup.vi">phil@globalsolutionsgroup.vi</a>'</div>
<div> ourEmail2 = '<a href="mailto:benoismyname@gmail.com">benoismyname@gmail.com</a>'</div><div> form = cgi.FieldStorage()</div><div> name = form.getfirst('name', '')</div><div> email = form.getfirst('from', '')</div>
<div> message = form.getfirst('message', '')</div><div> message = 'Name: %s\nMessage: %s' % (name, message)</div><div> subject = 'Message from Web Site'</div><div> Email(</div><div> from_address = email,</div>
<div> to_address = ourEmail1,</div><div> subject = subject,</div><div> message = message</div><div> ).send()</div><div> Email(</div><div> from_address = email,</div><div> to_address = ourEmail2,</div>
<div> subject = subject,</div><div> message = message</div><div> ).send()</div><div> print 'Thank you, %s, we will get back to you shortly!<br />' % (name)</div><div><br></div><div>This sends only the first of the two emails. Why doesn't it work to send the second? What do?</div>
<div>TIA,</div><div>beno</div><br>-- <br>The Logos has come to bear<br><a href="http://logos.13gems.com/">http://logos.13gems.com/</a><br>
</div>