Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: LoJo on July 12, 2014, 11:02:35 AM

Title: Define Return-path with php mail()
Post by: LoJo on July 12, 2014, 11:02:35 AM
Hello,

I use php mail() function to send emails from RC because of restrictions on SMTP ( OVH mutu).
When a RC user send an email to a false email address, he isn't notified because Return path seems not defined.
Is it possible to define returnpath to the sender in mail() function ?
Whitch file can I modify ?

Thanks.
Title: Re: Define Return-path with php mail()
Post by: LoJo on July 15, 2014, 06:42:11 AM
I soluced my problem by adding in program/steps/mail/sendmail.inc on line 139 :
$headers['Return-Path']   = $from;