Commit 0c35eb2b authored by Adrián Ribao's avatar Adrián Ribao
Browse files

changed send_to_contact function and don't check for if it's already sent.

parent e5348218
......@@ -84,11 +84,10 @@ class CampaignDeliver(object):
return text
def send_to_contact(self, contact):
if contact.sent == False:
msg = self.compose_email(contact)
msg.send()
contact.sent = True
contact.save()
msg = self.compose_email(contact)
msg.send()
contact.sent = True
contact.save()
def compose_email(self, contact):
html = self.campaign.email_template.html
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment