Skip to content

Mailer Configuration

Andy edited this page Oct 29, 2013 · 1 revision

The RoR mailer is used for two different purposes in the web service. One is for the public facing contact form and the other is for contacting group members, when they have been added to a group. Modification of the email content follows the standard approach to modifying the mailer views, which we will not review in this document. There are some default settings that can be overridden with environment variables for both set of mailers.

Contact Mailer Variables

The contact mailer has the following variables that it can use to override the default settings:

CONTACT_EMAILBOX='operations@example.com'
CONTACT_FROM='no-reply-mailbox@example.com'
CONTACT_SUBJECT='New Contact Request'

The default settings are stored in the ContactMailer class.

Group Mailer Variables

The group mailer has the following variables for customizing the address and subject.

GROUP_FROM_EMAIL="no-reply-mailbox@example.com"
GROUP_EMAIL_SUBJECT="Group Membership Notification"

The default settings are stored in the GroupMailer class.

Clone this wiki locally