Add subject option to settings.py

master
Tait Hoyem 3 years ago
parent dc5756d39b
commit 34619847e0

@ -58,7 +58,7 @@ def search(request, addr):
def send_email(to, addr, pdf, dt_date):
# send email
email = EmailMultiAlternatives()
email.subject = 'Your free quote!'
email.subject = settings.QUOTE_SUBJECT
email.to = [to]
context = {
'address': addr.address,

@ -148,3 +148,4 @@ DOWNLOAD_EMAIL = ''
# Custom settings
MAX_EMAILS_PER_DAY = 3
QUOTE_SUBJECT = 'roofquote.online - Your roof proposal is here!'

Loading…
Cancel
Save