<div class="gmail_quote">On Tue, Mar 2, 2010 at 11:48 AM, Victor Subervi <span dir="ltr"><<a href="mailto:victorsubervi@gmail.com">victorsubervi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
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" target="_blank">marilyn@globalsolutionsgroup.vi</a>'</div><div>  ourEmail1 = '<a href="mailto:phil@globalsolutionsgroup.vi" target="_blank">phil@globalsolutionsgroup.vi</a>'</div>

<div>  ourEmail2 = '<a href="mailto:benoismyname@gmail.com" target="_blank">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></div></blockquote><div><br></div><div>Should I put a timer between instances of Email? </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><br></div></blockquote></div>