Re: Using mail() with w2k/IIS5 with SMTP feature

From: Date: Thu, 03 Oct 2002 22:58:38 +0000
Subject: Re: Using mail() with w2k/IIS5 with SMTP feature
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-16149@lists.php.net to get a copy of this message
Hello, On 10/03/2002 04:04 AM, Georg Herland wrote:
I'm trying to insert sending of a "notice-mail" whenever someone submits to a buletinboard. I've checked the SMTP service with a mail-client, and sending mail works fine. When I try to send via the mail() function in my php script, it fails with the following warning: "Warning: Failed to Receive in L:\root_www_leilighet\app_to_top_of_guestbook.php on line 32" wich refers to the line where I use "mail($email_recipient, $email_subject, $text);" Should I impress a certain format to my variables contents? My php.ini looks like this: [mail function] ; For Win32 only. SMTP = 10.0.0.2 ; for Win32 only
Is there really a SMTP server running in this address?
; For Win32 only. sendmail_from = smtp_php@heimen.no ; for Win32 only
The mail() function is known to be very broken and to produce useless error messages. You may want to try this class that even comes with a wrapper named smtp_mail() that is an emulation of the mail() function. If there is any problem, at least it will produce useful error messages: http://www.phpclasses.org/mimemessage You also need this: http://www.phpclasses.org/smtpclass -- Regards, Manuel Lemos

« previous php.windows (#16149) next »