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:
- Name=gmail.com
    Preference=5, Mail Exchange=gmail-smtp-in.l.google.com
    Preference=10, Mail Exchange=alt1.gmail-smtp-in.l.google.com
    Preference=10, Mail Exchange=alt2.gmail-smtp-in.l.google.com
    Preference=50, Mail Exchange=gsmtp163.google.com
    Preference=50, Mail Exchange=gsmtp183.google.com


--
Gabriel Genellina
Softlab SRL
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to