forked from lix-project/hydra
Fix email sender address when notification_sender is not set
This commit is contained in:
parent
c6fcce3b3b
commit
c54a04688e
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ sub sendEmail {
|
||||||
my ($config, $to, $subject, $body, $extraHeaders) = @_;
|
my ($config, $to, $subject, $body, $extraHeaders) = @_;
|
||||||
|
|
||||||
my $url = getBaseUrl($config);
|
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 = (
|
my @headers = (
|
||||||
To => $to,
|
To => $to,
|
||||||
|
|
Loading…
Reference in a new issue