Using mail() with w2k/IIS5 with SMTP feature
| From: | Georg Herland | Date: | Thu, 03 Oct 2002 07:04:31 +0000 |
| Subject: | Using mail() with w2k/IIS5 with SMTP feature | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-16148@lists.php.net to get a copy of this message | ||
Hi!
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
; For Win32 only.
sendmail_from = smtp_php@heimen.no ; for Win32 only
Can anyone please help?
Regards, Georg Herland