Server Win2000+IIS5.0+php+MySQL+Exchange2000
Webmail is OK.
SMTP is OK and ALL function is fine JUST MAIL dont work!!!
The outgoing mail can not send out please teach me to fix!!
Thanks a lots!!!
error message :
Warning: Server Error in c:\inetpub\wwwroot\4images\includes\email.php on line 171
my email.php file :
start line 171-->
function send_email() {
if ($this->use_smtp) {
return ($this->smtp_mail($this->to, $this->subject, $this->body, $this->create_header())) ? 1 : 0;
}
else {
return (mail($this->to, $this->subject, $this->body, $this->create_header())) ? 1 : 0;
}
}
function smtp_mail($mail_to, $subject, $body, $headers = "") {
global $config;
$ok = 1;
if (empty($config['smtp_host'])) {
$config['smtp_host'] = "localhost";
}