Re: Sending mail with php-

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/10/06, Albert <albert@xxxxxxxxxxxx> wrote:> Dotan Cohen wrote:> > But I still get the error! I did restart apache and even went so far as to> > reboot the machine. If I cannot modify the parameter within apache,> > then where should I modify it? Within php? Within sendmail?>> Look for the "sendmail_from" parameter in the "mail function" section of> php.ini.>> Or define the additional parameters:>> [quote from PHP documentation]> bool mail ( string to, string subject, string message [, string> additional_headers [, string additional_parameters]] )> [/quote]>> [quote from Example 486. Sending mail with extra headers and setting an> additional command line parameter. In PHP documentation]> <?php> mail("nobody@xxxxxxxxxxx", "the subject", $message,>     "From: webmaster@{$_SERVER['SERVER_NAME']}",> "-fwebmaster@{$_SERVER['SERVER_NAME']}");> ?>> [/quote]>> HTH>> Albert> PS List replies only please!
That most certainly is how I do it- just like TFM says! Actually, thelast field is a variable that is defined earlier, but I have outputedit's contents to the screen to verify that it contains what it should.
Dotan Cohenhttp://technology-sleuth.com/long_answer/what_is_a_cellphone.html(*)

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux