-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1790 from tcmitchell/1777-email
Use configured from address in all portal emails
- Loading branch information
Showing
8 changed files
with
67 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -170,7 +170,12 @@ function store_lead_request($urn, $uuid, $eppn) { | |
$body .= "(Duplicate request)"; | ||
} | ||
|
||
mail($portal_admin_email, $subject, $body); | ||
$headers = "From: \"The GENI Portal\" <$portal_from_email>\r\n"; | ||
$headers .= "Reply-To: $portal_help_email\r\n"; | ||
$headers .= "Content-Type: text/plain; charset=UTF-8\r\n"; | ||
$headers .= "Content-Transfer-Encoding: 8bit\r\n"; | ||
|
||
mail($portal_admin_email, $subject, $body, $headers, "-f $portal_from_email"); | ||
} | ||
|
||
// Now email them to say we got their lead request (if this is a new request) | ||
|
@@ -190,14 +195,15 @@ function store_lead_request($urn, $uuid, $eppn) { | |
$body .= "GENI Experimenter Support\n"; | ||
$body .= "[email protected]\n"; | ||
|
||
$headers = "Reply-To: [email protected]\r\n"; | ||
$headers = "From: \"The GENI Portal\" <$portal_from_email>\r\n"; | ||
$headers .= "Reply-To: $portal_help_email\r\n"; | ||
$headers .= "Bcc: $portal_admin_email\r\n"; | ||
$headers .= "Content-Type: text/plain; charset=UTF-8\r\n"; | ||
$headers .= "Content-Transfer-Encoding: 8bit\r\n"; | ||
|
||
$to = $user->prettyEmailAddress(); | ||
$subject = "Your GENI Project Lead request has been received"; | ||
mail($to, $subject, $body, $headers); | ||
mail($to, $subject, $body, $headers, "-f $portal_from_email"); | ||
} | ||
|
||
/* | ||
|
@@ -237,7 +243,13 @@ function note_change($field, $new, $old) { | |
if ($req_name !== $user->prettyName()) { | ||
$subject = "GENI name change posted"; | ||
} | ||
mail($portal_admin_email, $subject, $body); | ||
|
||
$headers = "From: \"The GENI Portal\" <$portal_from_email>\r\n"; | ||
$headers .= "Reply-To: $portal_help_email\r\n"; | ||
$headers .= "Content-Type: text/plain; charset=UTF-8\r\n"; | ||
$headers .= "Content-Transfer-Encoding: 8bit\r\n"; | ||
|
||
mail($portal_admin_email, $subject, $body, $headers, "-f $portal_from_email"); | ||
} | ||
|
||
/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters