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 = [EMAIL PROTECTED] ; 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


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to