From 47a939b1fd39e943fc894de6924a63dd2ec3eb7f Mon Sep 17 00:00:00 2001 From: Guillaume Rousse <guillaume.rousse@renater.fr> Date: Tue, 5 Dec 2017 17:40:47 +0100 Subject: [PATCH] add a default value for sendmail_path --- lib/IdPAccountManager/WebRequest.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/IdPAccountManager/WebRequest.pm b/lib/IdPAccountManager/WebRequest.pm index d6c384c..874239a 100644 --- a/lib/IdPAccountManager/WebRequest.pm +++ b/lib/IdPAccountManager/WebRequest.pm @@ -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"; -- GitLab