Commit d4acda7b authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg

Merge branch 'partner-address' into 'master'

Use new PARTNER_NOTIFICATION_ADDRESS instead of old PARTNER_EMAIL

See merge request !1315
parents 9d169a93 11403c04
...@@ -24,14 +24,12 @@ def send_vacancy_expiration_notifications(dry_run=False): ...@@ -24,14 +24,12 @@ def send_vacancy_expiration_notifications(dry_run=False):
'\n\nKind regards,\nThe website' '\n\nKind regards,\nThe website'
.format(exp_vacancy.title, .format(exp_vacancy.title,
exp_vacancy.get_company_name())) exp_vacancy.get_company_name()))
recipient = settings.PARTNER_EMAIL
if not dry_run: if not dry_run:
# Send Mail # Send Mail
EmailMessage( EmailMessage(
subject, subject,
text_message, text_message,
to=[recipient] to=[settings.PARTNER_NOTIFICATION_ADDRESS]
).send() ).send()
# Save that mail has been sent into database # Save that mail has been sent into database
......
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