Message missing SMTP Header From?? -Error
Here is my (Python) Script: mail_text = container.inform_owner(send_to_address='saravan@eas.iis.fhg.de') mail_host = context.MailHost mail_host.send(mail_text) inform_owner is a Page Template and it looks like this: To: <span tal:replace="options/send_to_address" /> From: <span tal:replace="options/send_to_address" /> Subject: A title Content-Type: text/plain; charset=<span tal:replace="here/portal_properties/site_properties/default_charset" /> BODY BODY I get error msg Message missing SMTP Header 'From'. But i am able to use the method, mail_host.send(msg,from_addr,to_addr,subject) Can anyone tell me whats going wrong?. I have been trzing to find it for 2 days. without success.. Thanks and regards Saravanan A A.Saravanan, WundtStrasse 7,Zi:9L1, Dresden - 01217 Germany Home: 0351-7997546 Mobile: 01797395091
saravanan annamalai wrote at 2003-10-27 12:06 -0000:
Here is my (Python) Script:
mail_text = container.inform_owner(send_to_address='saravan@eas.iis.fhg.de') mail_host = context.MailHost mail_host.send(mail_text) ... I get error msg Message missing SMTP Header 'From'.
Python (and by extension Zope) error messages are quite good. You should read them. The "send" above lacks a "from_addr".
But i am able to use the method, mail_host.send(msg,from_addr,to_addr,subject)
Here, you do pass a "from_addr"... -- Dieter
participants (2)
-
Dieter Maurer -
saravanan annamalai