On 24 May 2010 14:59:24 UTC+1, dirknbr <dirk...@googlemail.com> wrote:
> It doesn't error on 'import email' but does on call to MimeText.
>
> import email
> msg = MIMEText('test')
>
> NameError: name 'MIMEText' is not defined

Here you want:

msg = email.MIMEText('test')

-- 
Cheers,
Simon B.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to