|
|
|
@ -560,7 +560,7 @@ class NewsLetterSender(object): |
|
|
|
print >>sys.stderr, 'smtp connection raises %s' % exception |
|
|
|
print >>sys.stderr, 'smtp connection raises %s' % exception |
|
|
|
status = ContactMailingStatus.ERROR |
|
|
|
status = ContactMailingStatus.ERROR |
|
|
|
|
|
|
|
|
|
|
|
if self.newsletter.dailymail and status in [ContactMailingStatus.SENT_TEST, ContactMailingStatus.SENT, ContactMailingStatus.INVALID]: |
|
|
|
if self.newsletter.dailymail and status in [ContactMailingStatus.SENT_TEST, ContactMailingStatus.SENT, ContactMailingStatus.ERROR]: |
|
|
|
contact.last_mailing_date = datetime.now().date() |
|
|
|
contact.last_mailing_date = datetime.now().date() |
|
|
|
contact.save() |
|
|
|
contact.save() |
|
|
|
params = { |
|
|
|
params = { |
|
|
|
|