Carsten, changing to m.as_string() worked perfectly - Thanks for the
help.
The actual project I'm working on is a lot more complex than the
simple case I've shown you, and does warrant the use of the message
parser, honest! :-)
On Aug 4, 5:14 pm, Carsten Haese <[EMAIL PROTECTED]> wrote:
> On Sat,
On Sat, 2007-08-04 at 17:10 +0100, Tim Williams wrote:
> Your script (as posted) works fine for me.
>
> I did need to change one import line to: from email.Message import
> Message (note the capitalization)
The modules inside the email package appear to have changed from
capitalized names to l
On Sat, 2007-08-04 at 15:38 +, Slippy wrote:
> [...]
> import smtplib, email
> from email.message import Message
> m = Message( )
> m['From'] = 'Slippy <[EMAIL PROTECTED]>'
> m['To'] = '[EMAIL PROTECTED]'
> m['Subject'] = 'A Test Message'
> m.set_payload('This is a test email. Please ignore')
>
On 04/08/07, Slippy <[EMAIL PROTECTED]> wrote:
> Hi, python newbie, struggling to learn here. I'm trying to write a
> simple program which posts messages to my google group (via email).
> I'm using smtplib, email and email.message to build and send a
> message, but all the header attributes are app
Hi, python newbie, struggling to learn here. I'm trying to write a
simple program which posts messages to my google group (via email).
I'm using smtplib, email and email.message to build and send a
message, but all the header attributes are appearing in the message
body, so my messages are arriving