Re: Help : send emails

From: Date: Fri, 17 Nov 2000 17:25:29 +0000
Subject: Re: Help : send emails
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-25924@lists.php.net to get a copy of this message
On Fri, 17 Nov 2000, Alain ROMERO wrote: > My NT server is not running SMTP service. > I configure php3.ini like this : > > [mail function] > SMTP = thesmtpserver.mydomain ;for win32 only > sendmail_from = myemail@mydomain ;for win32 only > sendmail_path = ;for unix > only > > I get this message : > Warning: Server Error in d:/wwwroot/.... on line 22 > > when i write : > //send mail > mail($mailTo, $mailSubject, $mailBody, $mailHeaders); > That's because the SMTP entry has to point to a real server that is running SMTP. If it's not, you can't send mail that way. -- Ignacio Vazquez-Abrams <ignacio@openservices.net>

« previous php.general (#25924) next »