Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Adrián Ribao
Cartero
Commits
0c35eb2b
Commit
0c35eb2b
authored
Oct 02, 2014
by
Adrián Ribao
Browse files
changed send_to_contact function and don't check for if it's already sent.
parent
e5348218
Changes
1
Hide whitespace changes
Inline
Side-by-side
cartero/utils/sending.py
View file @
0c35eb2b
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment