Password, trust and user notification

Aidan Steele aidan at aidans.org
Wed Dec 13 19:44:14 EST 2006


On 12/14/06, Gabriel Genellina <gagsl-py at yahoo.com.ar> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20061214/5f8a7847/attachment.html>


More information about the Python-list mailing list