writing a body using email module

B martin_byrne2 at yahoo.co.uk
Tue Apr 23 05:08:08 EDT 2002


"Steve Holden" <sholden at holdenweb.com> wrote in message news:<wWSw8.72199$T%5.62931 at atlpnn01.usenetserver.com>...
> "B" <martin_byrne2 at yahoo.co.uk> wrote in message
> news:508cb8ae.0204220123.493c35be at posting.google.com...
> > Hi,
> >
> > I've recently been looking at the relativly new email module. I've
> > been able to create the email with to,from,subject and attachments but
> > I cant for the life of me figure out how to write the body of the
> > mail.
> >
> > Can anyone help me out with this?
> >
> 
> Looks (from the docs, I've never used this library) like you need to call
> the add_payload() method with your message string as the argument.
> 
> regards
>  Steve

Yeah tried that, well I used set_payload()(add_payload() is
deprecated), still got nothing in the body of the email. Everything
else works fine.



More information about the Python-list mailing list