Closed DNX closed 13 years ago
Hi denis,
thank you for the report.
Rather than implementing a Try...Except in the mailer, I prefer implement a custom validator of the format directly in the admin interface.
Regards.
Perfect, I totally agree with you. Thanks
Implemented in Fantomas42/emencia-django-newsletter@603b8f3729aef8e418bc2946c74d88acdef283b1
I propose to add a
try
block on the line 84 in newsletter/models.pyso, the code:
becomes:
also it can be useful to validate
custom_headers
on saving SMTPServer.Without this precautions, when we run
send_newsletter
with a wrong format ofcustom_headers
we get:Thanks.