using the PHP4 mail() function in (Newbie)
| From: | Peter Haywood | Date: | Fri, 22 Jun 2001 16:00:47 +0000 |
| Subject: | using the PHP4 mail() function in (Newbie) | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-7982@lists.php.net to get a copy of this message | ||
Any advice on this would be much appreciated:
I am trying to send a simple email. in the php file, i have entered:
<?php
mail ("myemail@address.com", "This is the Subject", "This is the message
body");
?>
when i load the page, i get the following:
Warning: Server Error in C:\inetpub\wwwroot/php/tests/test.php on line 2
test.php being the file containing the PHP mail code
this is the sendmail info in my php.ini file:
[mail function]
; For Win32 only.
SMTP = localhost ; for Win32 only
; For Win32 only.
sendmail_from = me@localhost.com ; for Win32 only
thanks,
pete