diff --git a/LedgerSMB/Mailer.pm b/LedgerSMB/Mailer.pm index 5e7e40786d..269932a416 100644 --- a/LedgerSMB/Mailer.pm +++ b/LedgerSMB/Mailer.pm @@ -219,7 +219,8 @@ sub send { } else { $self->{_message}->send( 'sendmail', - ${LedgerSMB::Sysconfig::sendmail} + SendMail => ${LedgerSMB::Sysconfig::sendmail}, + SetSender => 1 ) || return $!; } } diff --git a/ledgersmb.conf.default b/ledgersmb.conf.default index 2d9ea33a41..a9ca34c0e1 100644 --- a/ledgersmb.conf.default +++ b/ledgersmb.conf.default @@ -78,7 +78,7 @@ gzip = gzip -S .gz [mail] ### How to send mail. The sendmail command is used unless smtphost is set. -sendmail = /usr/bin/sendmail -t +sendmail = /usr/bin/sendmail # smtphost = 127.0.0.1 # smtptimeout = 60 # backup_email_from = backups@lsmb_hosting.com