On 12/14/06, <b class="gmail_sendername">Gabriel Genellina</b> <<a href="mailto:gagsl-py@yahoo.com.ar">gagsl-py@yahoo.com.ar</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
At Wednesday 13/12/2006 20:45, placid wrote:<br><br>> > You DON'T need the password for the receiving account just to send him<br>> > an email!<br>> > And you don't even need that special Gmail library, smtplib should be
<br>> > fine.<br>><br>>Yes you dont need a password to receive email, but to access Gmail and<br>>send an email you do. Yes you do need the Gmail library to access Gmail<br>>because the script will run on a computer that doesnt have a smtp
<br>>server.<br>><br>>Is there other way's of notifying the user?<br><br>Use the standard SMTP class to connect to the destination SMTP server.<br>To determine the right server, issue a DNS request for MX records on
<br>the destination domain. (You may have to search for any suitable DNS<br>module since none is available in the standard Python distribution).<br><br>If you are really too lazy and you *know* the destination will<br>*always* be a gmail account and you don't bother if things go wrong
<br>tomorrow, these are some current MX records for <a href="http://gmail.com">gmail.com</a>:</blockquote><div><br>While what you said is technically correct, I think you misread their original question. They want to send email *from* the Gmail account *to* the work account. I suggested that he use Gmail's SMTP server to send the email.
<br><br>Aidan Steele.<br></div></div>