PHP 5.0 onder Apache 2.0 en W2000.
PHP.ini:
[mail function]
; For Win32 only.
SMTP = post.demon.nl
smtp_port = 25
; For Win32 only.
sendmail_from = webserver@(xxx)meeuwessen.nl
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_paramaters =
PHP-code:
$header = "From: $van_naam <$van_email>\r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-Type: text/html;\r\n";
$header .= "Content-Transfer-Encoding: 7bit";
mail($naar, $onderwerp, $bericht, $header);
Error.log:
[26-Jul-2004 21:09:22] PHP Warning: mail() [<a href='function.mail'>function.mail</a>]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\Program Files\Apache Group\Apache2\htdocs\public_html\Marcel\Voegtoe.php on line 167
Weet iemand wat ik hier mis want ik kom er niet uit. Lijkt me allemaal niet zo moeilijk maar waarom het nu niet werkt? Alvast bedankt voor de moeite!
PHP.ini:
[mail function]
; For Win32 only.
SMTP = post.demon.nl
smtp_port = 25
; For Win32 only.
sendmail_from = webserver@(xxx)meeuwessen.nl
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_paramaters =
PHP-code:
$header = "From: $van_naam <$van_email>\r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-Type: text/html;\r\n";
$header .= "Content-Transfer-Encoding: 7bit";
mail($naar, $onderwerp, $bericht, $header);
Error.log:
[26-Jul-2004 21:09:22] PHP Warning: mail() [<a href='function.mail'>function.mail</a>]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\Program Files\Apache Group\Apache2\htdocs\public_html\Marcel\Voegtoe.php on line 167
Weet iemand wat ik hier mis want ik kom er niet uit. Lijkt me allemaal niet zo moeilijk maar waarom het nu niet werkt? Alvast bedankt voor de moeite!
[ Voor 6% gewijzigd door Verwijderd op 26-07-2004 21:43 ]