Skip to content
Snippets Groups Projects
Commit 47a939b1 authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

add a default value for sendmail_path

parent e2408f45
No related branches found
No related tags found
No related merge requests found
......@@ -358,7 +358,8 @@ sub req_generate_token {
my $sender = $self->{configuration}->{_}->{notice_from};
my $recipient = $self->{in}->{email_address};
my $sendmail = $self->{configuration}->{_}->{sendmail_path};
my $sendmail = $self->{configuration}->{_}->{sendmail_path} ||
'/usr/sbin/sendmail';
open(my $handle, '|-', "$sendmail -f $sender $recipient") or do {
push @{ $self->{out}->{errors} }, "mail_notification_error";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment