MIME attachments and SMTP

Bjorn Pettersen bjorn at roguewave.com
Tue Sep 12 03:00:31 CEST 2000

```change it to:

toaddrs = ['rickr at brickroad.net']  # to: has to be a list
# body with two newlines
msg = 'Subject: foobar\n\nblah blah blah blah'

hth,
-- bjorn

>
> I'm trying to set up a command line utility in
> python.. and I've set up the SMTP to specs but
> when I send a message doing:
> server = smtplib.SMTP('myserver')
> server.set_debuglevel(1)
> msg = 'blah blah blah blah'
> server.quit()
>
> however, it arrives it arrives with no to: and no
> subject.
>
> I was also wondering if someone could point me to
> attachments. I've gone through the docs.. but
> can't find much information on this.
>
> thanks
>
> Rick
>
> Sent via Deja.com http://www.deja.com/