Archived
Mails sent with group-specific from-address
This commit is contained in:
1 parent
ae3e9502bd
commit
0543d366fe
4 files changed
+5
-1
No files matched your search
@@ -13,6 +13,7 @@ import utils
|
||||
|
||||
class BaseFormView(TemplateView):
|
||||
mail_template_name = "confirmation_mail.txt"
|
||||
mail_from = 'no-reply@studentersamfundet.no'
|
||||
form_template_name = None
|
||||
trello_board_id = None
|
||||
params_list = None
|
||||
@@ -92,7 +93,7 @@ class BaseFormView(TemplateView):
|
||||
'url' : self._get_order_url(request, order),
|
||||
}
|
||||
|
||||
mail_from = "noreply@studentersamfundet.no"
|
||||
mail_from = self.mail_from
|
||||
mail_to = order.contact_email
|
||||
mail_subject = "{id}: Bestillingen din er mottatt.".format(id=order.client)
|
||||
mail_content = template.render(Context(context_data))
|
||||
|
||||
@@ -13,6 +13,7 @@ from django.template.loader import get_template
|
||||
class DesignFormView(BaseFormView):
|
||||
form_template_name = 'design/form.html'
|
||||
trello_board_id = settings.TRELLO_DESIGN_BOARD_ID
|
||||
mail_from = settings.MAIL_KAK_DESIGN
|
||||
params_list = [
|
||||
'client',
|
||||
'deadline',
|
||||
|
||||
@@ -13,6 +13,7 @@ from prm.models import PrmOrder
|
||||
class PrmFormView(BaseFormView):
|
||||
form_template_name = 'prm/form.html'
|
||||
trello_board_id = settings.TRELLO_PRM_BOARD_ID
|
||||
mail_from = settings.MAIL_KAK_PRM
|
||||
params_list = [
|
||||
'client',
|
||||
'deadline',
|
||||
|
||||
@@ -13,6 +13,7 @@ from tekst.models import TekstOrder
|
||||
class TekstFormView(BaseFormView):
|
||||
form_template_name = 'tekst/form.html'
|
||||
trello_board_id = settings.TRELLO_TEKST_BOARD_ID
|
||||
mail_from = settings.MAIL_KAK_TEKST
|
||||
params_list = [
|
||||
'client',
|
||||
'deadline',
|
||||
|
||||
Reference in new issue
Block a user