You are here: RE: [PHP] Sending mail with php- « PHP « IT news, forums, messages
RE: [PHP] Sending mail with php-

Posted by "Albert" on 01/10/06 14:55

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@example.com", "the subject", $message,
"From: webmaster@{$_SERVER['SERVER_NAME']}",
"-fwebmaster@{$_SERVER['SERVER_NAME']}");
?>
[/quote]

HTH

Albert
PS List replies only please!

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.16/225 - Release Date: 2006/01/09

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация