osuosl / formsender

Simple script to email form submissions.
Apache License 2.0
3 stars 1 forks source link

Custom Mail Subject #59

Closed matthewrsj closed 8 years ago

matthewrsj commented 8 years ago

Mail subject is set dynamically based on the existence and contents of the two form fields mail_subject_prefix and mail_subject_key, format of the subject is based upon availability of these fields:

message['mail_subject_prefix']: message[message['mail_subject_key']
example: Hosting Request: Python Foundation

or

message['mail_subject_prefix']
example: Hosting Request

or

message[message['mail_subject_key']]
example: Python Foundation

or the default

Form Submission
Kennric commented 8 years ago

+1