Mercurial > p > roundup > code
diff roundup/mailer.py @ 2124:6deda7ff3b2a
*** empty log message ***
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 25 Mar 2004 22:53:26 +0000 |
| parents | 95da13c1bdbd |
| children | e49e6c7b14fb |
line wrap: on
line diff
--- a/roundup/mailer.py Thu Mar 25 22:52:12 2004 +0000 +++ b/roundup/mailer.py Thu Mar 25 22:53:26 2004 +0000 @@ -1,7 +1,7 @@ """Sending Roundup-specific mail over SMTP. """ __docformat__ = 'restructuredtext' -# $Id: mailer.py,v 1.8 2004-03-25 22:52:12 richard Exp $ +# $Id: mailer.py,v 1.9 2004-03-25 22:53:26 richard Exp $ import time, quopri, os, socket, smtplib, re @@ -99,8 +99,6 @@ - subject: the subject as a string. """ - message, writer = self.get_standard_message(to, subject) - # see whether we should send to the dispatcher or not dispatcher_email = getattr(self.config, "DISPATCHER_EMAIL", getattr(self.config, "ADMIN_EMAIL")) @@ -110,6 +108,8 @@ elif error_messages_to == "both": to.append(dispatcher_email) + message, writer = self.get_standard_message(to, subject) + part = writer.startmultipartbody('mixed') part = writer.nextpart() part.addheader('Content-Transfer-Encoding', 'quoted-printable')
