sending mail from python script, strangeness with symbol ':' in body
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. I tested with zope2.6.1 and 2.6.2 Your help is very appreciated. Best regards, Ruslan
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
participants (2)
-
Maik Jablonski -
Ruslan Spivak