Re: Sending e-mail

2008-08-29 Thread Mike Driscoll
On Aug 29, 11:44 am, [EMAIL PROTECTED] wrote: > On Aug 28, 3:23 pm, gordyt <[EMAIL PROTECTED]> wrote: > > > > > Peter here is an example.  I just tried it and it works fine. > > > from smtplib import SMTP > > HOST = "smtp.gmail.com" > > PORT = 587 > > ACCOUNT = ""  # put your gmail email account na

Re: Sending e-mail

2008-08-29 Thread peter . jones . rpi
On Aug 28, 3:23 pm, gordyt <[EMAIL PROTECTED]> wrote: > Peter here is an example. I just tried it and it works fine. > > from smtplib import SMTP > HOST = "smtp.gmail.com" > PORT = 587 > ACCOUNT = "" # put your gmail email account name here > PASSWORD = "" # put your gmail email account password

Re: Sending e-mail

2008-08-28 Thread gordyt
Peter here is an example. I just tried it and it works fine. from smtplib import SMTP HOST = "smtp.gmail.com" PORT = 587 ACCOUNT = "" # put your gmail email account name here PASSWORD = "" # put your gmail email account password here def send_email(to_addrs, subject, msg): server = SMTP(HO

Re: Sending e-mail

2008-08-28 Thread Vistro
I used that code before, and it did not do what it needed to do. If you are just sending text, this usually works for me. def sendMail(): ## Parameters for SMTP session port=587 SMTPserver= 'smtp.gmail.com' SMTPuser= 'gmail username, which is your gmail address' pw= 'your gma

Re: Sending e-mail

2008-08-28 Thread Waldemar Osuch
On Aug 28, 12:52 pm, [EMAIL PROTECTED] wrote: > I work at a training center and I would like to use Python to generate > a number of certificates and then e-mail them. The certificates are a > problem for another day - right now I just want to figure out how to > send an e-mail. > > I confess I don

Sending e-mail

2008-08-28 Thread peter . jones . rpi
I work at a training center and I would like to use Python to generate a number of certificates and then e-mail them. The certificates are a problem for another day - right now I just want to figure out how to send an e-mail. I confess I don't know much about the protocol(s) for e-mail. In PHP usi