Re: [Tutor] Sending mail

2010-03-26 Thread Shashwat Anand
I guess you can use smtplib. On Fri, Mar 26, 2010 at 7:07 PM, Timo wrote: > > > 2010/3/25 Timo > > Hello, >> >> I was wondering what the best way is to send an email through my program? >> I want the user to send an email with an attachment. >> >> I do have a webspace, should I use the smtplib

Re: [Tutor] Sending mail

2010-03-26 Thread Timo
2010/3/25 Timo > Hello, > > I was wondering what the best way is to send an email through my program? I > want the user to send an email with an attachment. > > I do have a webspace, should I use the smtplib module if my webhost > supports it (I have to ask though), or should I put a script on my

[Tutor] Sending mail

2010-03-25 Thread Timo
Hello, I was wondering what the best way is to send an email through my program? I want the user to send an email with an attachment. I do have a webspace, should I use the smtplib module if my webhost supports it (I have to ask though), or should I put a script on my space and communicate with t

Re: [Tutor] Sending Mail

2008-04-22 Thread Kent Johnson
On Tue, Apr 22, 2008 at 6:06 AM, Stephen Nelson-Smith <[EMAIL PROTECTED]> wrote: > smtpserver = 'relay.clara.net' > > RECIPIENTS = ['[EMAIL PROTECTED]'] > SENDER = '[EMAIL PROTECTED]' > message = """Subject: HTTPD ALERT: %s requests %s connections > Please investigate ASAP.""" % (rps, connections)

Re: [Tutor] Sending Mail

2008-04-22 Thread linuxian iandsd
i can send email w/ no problem using this : import smtplib smtp = smtplib.SMTP() smtp.connect('smtp_server_here') smtp.login('user_name', 'password') smtp.sendmail(strFrom, strTo, msgRoot.as_string()) smtp.quit() ___ Tutor maillist - Tutor@python.org h

[Tutor] Sending Mail

2008-04-22 Thread Stephen Nelson-Smith
smtpserver = 'relay.clara.net' RECIPIENTS = ['[EMAIL PROTECTED]'] SENDER = '[EMAIL PROTECTED]' message = """Subject: HTTPD ALERT: %s requests %s connections Please investigate ASAP.""" % (rps, connections) session = smtplib.SMTP(smtpserver) smtpresult = session.sendmail(SENDER, RECIPIENTS, messag