Re: Sending Email using examples From Tutorials

2018-01-28 Thread Skip Montanaro
Your code is fine, ... In addition to what Jason wrote, note that the way you need to authenticate to most email servers has changed substantially since this tutorial example was written. The OP has a yahoo.com email address. Even assuming you used something like smtp.yahoo.com as the SMTP server

Re: Sending Email using examples From Tutorials

2018-01-27 Thread Jason Friedman
> > import smtplib > server = smtplib.SMTP('localhost') > server.sendmail('gg77gal...@yahoo.com', > """To: gg.gal...@gmail.com > From: gg77gal...@yahoo.com > > Beware the Ides of March. > """) > server.quit() > > when running this I get the following message. Please help: > > Traceback (most recent

Re: Sending email

2009-08-30 Thread John Haggerty
I would concur On Fri, Aug 28, 2009 at 9:49 AM, 7stud wrote: > On Aug 28, 8:18 am, Fencer > wrote: > > 7stud wrote: > > > > [snip] > > > > Thanks for your reply. After consulting the sysadmins here I was able to > > get it to work. > > > > - Fencer > > > Ok, but how about posting your code so t

Re: Sending email

2009-08-30 Thread 7stud
On Aug 28, 8:18 am, Fencer wrote: > 7stud wrote: > > [snip] > > Thanks for your reply. After consulting the sysadmins here I was able to > get it to work. > > - Fencer Ok, but how about posting your code so that a future searcher will not be left screaming, "WHAT THE EFF WAS THE SOLUTION!!" --

Re: Sending email

2009-08-28 Thread Fencer
7stud wrote: [snip] Thanks for your reply. After consulting the sysadmins here I was able to get it to work. - Fencer -- http://mail.python.org/mailman/listinfo/python-list

Re: Sending email

2009-08-28 Thread 7stud
On Aug 28, 2:37 am, Fencer wrote: > Hello, I'm using Python version 2.6.2 and I discovered it has built-in > libraries for sending email (imports smtplib and email). On the web I > discovered how to send mail through smtp.gmail.com: > > mail_server = smtplib.SMTP() > > mail_server.connect('smtp.gm

Re: sending email with charset utf-8 but subject is not coded properly

2006-04-14 Thread Rene Pijlman
Grzegorz ¦lusarek: >I sending email using standard python modules smtplib, email, >coding email in utf but subject of message is not coded properly. In >subject i use my national characters (polish) and after send i get XX in >place these characters. >Here is the code > >Message = email.message_

Re: Sending email in utf-8?

2005-11-09 Thread morphex
By turning everything into unicode objects (unicode(string)) and then running body.encode('utf-8') and using quoted printable, it works. Thanks for all the help, it's really appreciated! -- http://mail.python.org/mailman/listinfo/python-list

Re: Sending email in utf-8?

2005-11-08 Thread Fredrik Lundh
"morphex" <[EMAIL PROTECTED]> wrote: > """ > Date: Mon, 7 Nov 2005 11:38:29 -0700 (MST) > Message-Id: <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED], [EMAIL PROTECTED] > From: [EMAIL PROTECTED] > Subject: Order confirmation > Content-Type: text/plain; charset="utf-8" > X-Bogosity: No, tests=bogofilt

Re: Sending email in utf-8?

2005-11-08 Thread Max M
morphex wrote: > That works, kinda. I get strange characters now like this > > """ > Date: Mon, 7 Nov 2005 11:38:29 -0700 (MST) > Message-Id: <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED], [EMAIL PROTECTED] > From: [EMAIL PROTECTED] > Subject: Order confirmation > Content-Type: text/plain; charset

Re: Sending email in utf-8?

2005-11-07 Thread morphex
That works, kinda. I get strange characters now like this """ Date: Mon, 7 Nov 2005 11:38:29 -0700 (MST) Message-Id: <[EMAIL PROTECTED]> To: [EMAIL PROTECTED], [EMAIL PROTECTED] From: [EMAIL PROTECTED] Subject: Order confirmation Content-Type: text/plain; charset="utf-8" X-Bogosity: No, tests=bo

Re: Sending email in utf-8?

2005-11-07 Thread Fredrik Lundh
"morphex" <[EMAIL PROTECTED]> wrote: > I have an email that's in the utf-8 encoding, and I'm getting this > error message when I try to send it using smtplib: > >* Module smtplib, line 688, in sendmail >* Module smtplib, line 485, in data >* Module smtplib, line 312, in send >* Mod