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