7 Aug
2003
7 Aug
'03
5:01 p.m.
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