Skip to content

Commit

Permalink
Remove hardcoded sendmail "test"
Browse files Browse the repository at this point in the history
Will read this from config soon
  • Loading branch information
jrha committed Aug 15, 2019
1 parent 7d7460e commit e900362
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Gocdb_Services/NotificationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ private function mock_mail($to, $subject, $message, $additional_headers = "", $a


private function send_email($role_requested, $requesting_user, $entity_name, $approving_user) {
$sendMail = TRUE;
$headers = "From: [email protected]";

$subject = sprintf(
Expand Down Expand Up @@ -175,7 +174,7 @@ private function send_email($role_requested, $requesting_user, $entity_name, $ap

$email = $approving_user->getEmail();

if ($sendMail) {
if (True) {
mail($email, $subject, $body, $headers);
} else {
mock_mail($email, $subject, $body, $headers);
Expand Down

0 comments on commit e900362

Please sign in to comment.