Fix email sender address when notification_sender is not set

This commit is contained in:
Eelco Dolstra 2015-06-24 13:45:58 +02:00
parent c6fcce3b3b
commit c54a04688e

View file

@ -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,