Skip to content
Snippets Groups Projects
Unverified Commit 61602d39 authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Merge pull request #2890 from HyphaApp/enhancement/gh-2775-email-subject-prefix

Add EMAIL_SUBJECT_PREFIX settings to email subject
parents b039b4c1 3aef2377
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,8 @@ app.config_from_object(settings, namespace='CELERY', force=True) ...@@ -8,6 +8,8 @@ app.config_from_object(settings, namespace='CELERY', force=True)
def send_mail(subject, message, from_address, recipients, logs=None): def send_mail(subject, message, from_address, recipients, logs=None):
if settings.EMAIL_SUBJECT_PREFIX:
subject = str(settings.EMAIL_SUBJECT_PREFIX) + str(subject)
# Convenience method to wrap the tasks and handle the callback # Convenience method to wrap the tasks and handle the callback
send_mail_task.apply_async( send_mail_task.apply_async(
kwargs={ kwargs={
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment