forked from lix-project/hydra
Fix email sender address when notification_sender is not set
This commit is contained in:
parent
c6fcce3b3b
commit
c54a04688e
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue