On 12/14/06, Gabriel Genellina <[EMAIL PROTECTED]> wrote:

At Wednesday 13/12/2006 20:45, placid wrote:

> > You DON'T need the password for the receiving account just to send him
> > an email!
> > And you don't even need that special Gmail library, smtplib should be
> > fine.
>
>Yes you dont need a password to receive email, but to access Gmail and
>send an email you do. Yes you do need the Gmail library to access Gmail
>because the script will run on a computer that doesnt have a smtp
>server.
>
>Is there other way's of notifying the user?

Use the standard SMTP class to connect to the destination SMTP server.
To determine the right server, issue a DNS request for MX records on
the destination domain. (You may have to search for any suitable DNS
module since none is available in the standard Python distribution).

If you are really too lazy and you *know* the destination will
*always* be a gmail account and you don't bother if things go wrong
tomorrow, these are some current MX records for gmail.com:


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.

Aidan Steele.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to