From c54a04688e24e77426f4ca89225ad9cf90c27ee9 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 24 Jun 2015 13:45:58 +0200 Subject: [PATCH] Fix email sender address when notification_sender is not set --- src/lib/Hydra/Helper/Email.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Helper/Email.pm b/src/lib/Hydra/Helper/Email.pm index 47fc5629..e628fca3 100644 --- a/src/lib/Hydra/Helper/Email.pm +++ b/src/lib/Hydra/Helper/Email.pm @@ -13,7 +13,7 @@ sub sendEmail { my ($config, $to, $subject, $body, $extraHeaders) = @_; my $url = getBaseUrl($config); - my $sender = $config->{'notification_sender'} // (($ENV{'USER'} // "hydra") . "@" . $url); + my $sender = $config->{'notification_sender'} // (($ENV{'USER'} // "hydra") . "@" . hostname_long); my @headers = ( To => $to,