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
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
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
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
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
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