Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@
EMAIL_DELIVERY_SERVICE = 'django'

JEPOSTULE_NO_REPLY = '[email protected]'
EMAIL_CANDIDATE_REPLY_TO = True
PLATFORM_ATTRIBUTES = {}
ATTACHMENTS_MAX_SIZE_BYTES = 10 * 1024 * 1024 # 10 Mb
BLACKLIST_DURATION_SECONDS = 30 * 24 * 3600
Expand Down
3 changes: 2 additions & 1 deletion jepostule/pipeline/answer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from django.template.loader import get_template
from django.conf import settings

from jepostule.queue import topics
from jepostule.email.utils import send_mail
Expand All @@ -25,7 +26,7 @@ def send_answer_to_candidate(job_application_id):
message = get_template(template).render(context)

reply_to = None
if hasattr(context['answer_details'], 'employer_email'):
if settings.EMAIL_CANDIDATE_REPLY_TO and hasattr(context['answer_details'], 'employer_email'):
reply_to = context['answer_details'].employer_email

message_id = send_mail(
Expand Down