|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-12-14 05:29 UTC] davidfelton at codemasters dot com
When using the mail function on windows 2000 with IIS5, it just returns 'unknown error' and exits. The mail function works fine on windows 98 with OmniHTTPd. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 22:00:01 2025 UTC |
I got the same error on Win2000+IIS5. I used this on the php page to overwrite ini values: <?php ini_set("sendmail_from",NULL); ini_set("sendmail_path",NULL); ini_set("SMTP","aaaa.xxxx.cccc.gggg");// Add SMTP server IP mail($mail_to, $mail_subject, $mail_body, $mail_headers); ?> It seems you have to explicitly tell PHP that Sendmail is not in the server :)