[Zope] Re: sending mail from python script, strangeness with symbol ':' in body

Maik Jablonski maik.jablonski at uni-bielefeld.de
Thu Aug 7 20:01:38 EDT 2003


Ruslan Spivak wrote:

> Hello!
> 
> When i try to send mail from python script and body of message contains 
> symbol ':' then i get letter without subject and body.
> In MailHost source i found send_simple, when using it i have no 
> problems, but with 'send' method i have abovemetioned problem.

MailHost.send() expects a full mail-header AND a text body. If you give 
only the body, it tries to extract the mailheader from the body, which 
breaks with a colon in the body.

You should use send_simple instead.

Cheers, Maik





More information about the Zope mailing list