Mail problem !
| From: | Jean-Arthur Silve | Date: | Thu, 16 Nov 2000 10:33:14 +0000 |
| Subject: | Mail problem ! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-25668@lists.php.net to get a copy of this message | ||
Hello !
I use PHP4.03pl1 on a Linux System that use Postifix.
But it have sendmail too in /usr/sbin
I would like PHP uses sendmail for sending mails.
In php.ini, that's ok. The mail program is /usr/sbin/sendmail -t -i
( I checked that whith phpinfo() )
But when I use the mail function, php keeps using Postfix....
It will be ok if I didn't have a problem I think due to Postifx (that s why I want to use Sendmail ).
In my srcipt I do :
....
$bcc="From: me@domain.com\r\nbcc: ".$bcc;
mail("you@domain.com",$SUBJECT,$MESSAGE,$bcc);
...
And I receive this message :
To: you@domain.com
Subject: subject....
bcc: joey@worldnet.fr,a.girou@... etc...
My message...
The problem is that Bcc field appears in the message and the mail is only sent to "you@domain.com"
so,
How can I force PHP to use sendmail, or does anyone have an idea about my problem on header fields with Postfix ??
Thanks !
jean-arthur
----------------------------------------------------------------
Le simple fait de passer par la fenetre ne suffit pas a la transformer en porte.