Skip to content

Commit

Permalink
Fix from header and set email address to admin list
Browse files Browse the repository at this point in the history
Fixes #168 (emails "from GOCDB" should come from [email protected]).
  • Loading branch information
jrha committed Aug 26, 2020
1 parent 1329fec commit e93cd6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Gocdb_Services/NotificationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ private function send_email($role_requested, $requesting_user, $entity_name, $ap
);

$email = $approving_user->getEmail();
$headers = "From: no-reply@goc.egi.eu";
$headers = "From: GOCDB <gocdb-admins@mailman.egi.eu>";

if (get_config_send_email()) {
mail($email, $subject, $body, $headers);
Expand Down

0 comments on commit e93cd6d

Please sign in to comment.