Hello Clément.
Now I using version from trunk.
I received email with FROM header but I cant see anything in From header in my Mail Client an in Postfix mail Server is shown www-data as sender:

*Mail Client ScreenShot:*
http://img33.imageshack.us/img33/7224/wofrom.png
*Postfix Logs:*
May 19 12:58:38 ubuntu postfix/qmgr[24410]: E2FEF6F58F: from=<[email protected]>, size=696, nrcpt=1 (queue active) May 19 12:58:39 ubuntu postfix/smtp[4322]: E2FEF6F58F: to=<[email protected]>, relay=192.168.1.1[192.168.1.1]:25, delay=0.13, delays=0.04/0/0/0.09, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> Queued mail for delivery)

When I changed in functions.inc.php:
$result = mail($mail, $subject, $body, $header."From: $mail_from\r\n");
to
$result = mail($mail, $subject, $body, $headers."FROM:$mail_from" ."\r\n","-f$mail_from");
I began to see From field:
*Mail Client ScreenShot:*
http://imageshack.us/m/607/4627/wfrom.png*
Postfix Logs:*
May 19 14:05:02 src postfix/pickup[11927]: 073DD6F58F: uid=33 from=<Domain>
May 19 14:05:02 src postfix/cleanup[9838]: 073DD6F58F: message-id=<[email protected]> May 19 14:05:02 src postfix/qmgr[24410]: 073DD6F58F: from=<[email protected]>, size=646, nrcpt=4 (queue active) May 19 14:05:02 src postfix/smtp[10640]: 073DD6F58F: to=<[email protected]>, relay=192.168.1.1[192.168.1.1]:25, delay=0.12, delays=0.04/0/0/0.08, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> Queued mail for delivery) May 19 14:05:02 src postfix/smtp[10640]: 073DD6F58F: to=<[email protected]>, relay=192.168.1.1[192.168.1.1]:25, delay=0.12, delays=0.04/0/0/0.08, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> Queued mail for delivery) May 19 14:05:02 src postfix/smtp[10640]: 073DD6F58F: to=<[email protected]>, orig_to=<Password>, relay=192.168.64.4[192.168.64.4]:25, delay=0.12, delays=0.04/0/0/0.08, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> Queued mail for delivery) May 19 14:05:02 src postfix/smtp[10640]: 073DD6F58F: to=<[email protected]>, orig_to=<Remainder>, relay=192.168.64.4[192.168.64.4]:25, delay=0.12, delays=0.04/0/0/0.08, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> Queued mail for delivery)
May 19 14:05:02 src postfix/qmgr[24410]: 073DD6F58F: removed

I don't know is that correct, but it works in my another  php code.

Thank you.

Slava.

On 5/18/2011 6:07 PM, Clément OUDOT wrote:
Le 18 mai 2011 16:32, admin<[email protected]>  a écrit :
this is possible with the trunk version (version 0.6) but not in version
0.5.
possible to change or to get email with empty From ?

You will have a $mail_from configuration parameter.


Clément.


_______________________________________________
ltb-users mailing list
[email protected]
http://lists.ltb-project.org/listinfo/ltb-users

Reply via email to