Skip to content

Commit

Permalink
Update organization affiliation change email (#1180)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpalmer authored Dec 10, 2019
1 parent 085fc5d commit d1d76a7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions classes/XDUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,11 @@ class XDUser extends CCR\Loggable implements JsonSerializable
EML;

const USER_NOTIFICATION_EMAIL = <<<EML
Dear %s,
This email is to notify you that XDMoD has detected a change in your organization affiliation. We
have taken steps to ensure that this is accurately reflected in our systems. If you have any questions
or concerns please contact us @ %s.
or concerns please contact us at %s.
Thank You,
Expand Down Expand Up @@ -2515,16 +2514,19 @@ public function synchronizeOrganization()
)
);

$contactAddress = \xd_utilities\getConfiguration('general', 'contact_page_recipient');

// Notify the user that there was an organization change detected.
MailWrapper::sendMail(
array(
'subject' => 'XDMoD User: Organization Update',
'body' => sprintf(
self::USER_NOTIFICATION_EMAIL,
$this->getFormalName(),
\xd_utilities\getConfiguration('mailer', 'sender_email')
$contactAddress
),
'toAddress' => $this->getEmailAddress()
'toAddress' => $this->getEmailAddress(),
'replyAddress' => $contactAddress
)
);
}
Expand Down

0 comments on commit d1d76a7

Please sign in to comment.