Skip to content
Snippets Groups Projects
Commit 3aef2377 authored by sandeepsajan0's avatar sandeepsajan0
Browse files

Add EMAIL_SUBJECT_PREFIX to email's subject

parent f1c1afb5
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