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
>
> 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
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
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!!"
--
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
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
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_
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
"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
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
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
"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
12 matches
Mail list logo