|
|
|
|
@ -555,11 +555,12 @@ class NewsLetterSender(object): |
|
|
|
|
contact.valid = False |
|
|
|
|
contact.save() |
|
|
|
|
else: |
|
|
|
|
# FIXME: добавить логинорование в sentry |
|
|
|
|
# signal error |
|
|
|
|
print >>sys.stderr, 'smtp connection raises %s' % exception |
|
|
|
|
status = ContactMailingStatus.ERROR |
|
|
|
|
|
|
|
|
|
if self.newsletter.dailymail and status in [ContactMailingStatus.SENT_TEST, ContactMailingStatus.SENT]: |
|
|
|
|
if self.newsletter.dailymail and status in [ContactMailingStatus.SENT_TEST, ContactMailingStatus.SENT, ContactMailingStatus.INVALID]: |
|
|
|
|
contact.last_mailing_date = datetime.now().date() |
|
|
|
|
contact.save() |
|
|
|
|
params = { |
|
|
|
|
|