[Tutor] SMTPLIB module - how to add subject ?

Kalle Svensson kalle@gnupung.net
Sat, 15 Sep 2001 23:03:38 +0200


[A]
> Hi,
> I tried 
> 11.11.2 SMTP Example from Python docs.
> Does anyone know how I can add subject to an email send by this example?

Something like
msg = ("From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n"
       % (fromaddr, string.join(toaddrs, ", "), subject))
might work.

Peace,
  Kalle
-- 
[ Thought control, brought to you by the WIPO! ]
[ http://anti-dmca.org/ http://eurorights.org/ ]