Skip to content

Commit

Permalink
Update FROM header used
Browse files Browse the repository at this point in the history
- as per GOCDB#171
  • Loading branch information
gregcorbett committed Feb 8, 2022
1 parent cd3e772 commit 126af81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Gocdb_Services/LinkIdentity.php
Expand Up @@ -304,7 +304,7 @@ private function sendConfirmationEmails($primaryUser, $currentUser, $code, $prim
$primaryBody = $composedPrimaryEmail['body'];

// If "sendmail_from" is set in php.ini, use second line ($headers = '';):
$headers = "From: no-reply@goc.egi.eu";
$headers = "From: GOCDB <gocdb-admins@mailman.egi.eu>";

// Mail command returns boolean. False if message not accepted for delivery.
if (!mail($primaryUser->getEmail(), $primarySubject, $primaryBody, $headers)) {
Expand Down

0 comments on commit 126af81

Please sign in to comment.