[Zope] MailHost

flynt flynt@gmx.ch
Thu, 27 Dec 2001 13:49:02 +0100


Shilpa Shenvi wrote:
> 
> Hello,
> 
> Has anyone else had this problem?
> 
> From a python script, I call mhost.send(messageText=mText, mto=emailaddr,
> mfrom=frmemailaddr, subject=title, encode=none).
> 
> All variables have previously been defined.
> 
> The contents of messageText cannot be seen in the email.  I tried directly
> placing a string, i.e messageText='hello', as well has
> defining the value in a separate variable and setting that equal to
> messageText.  I never get anything in the body of the email.
> The to and from  and subject fields are always fine.  Any suggestions?
> 
> Thank you,
> Shilpa
>

Hi Shilpa

Most often when you do not get the message body, the problem is a
missing empty line between the headers and the body of the email.

For an example how to send an email from a python script see:
http://lists.zope.org/pipermail/zope/2001-December/105791.html


Regards

--- Flynr