I keep getting parse error everytime I use the MAIL() function. I tried different approaches and knowledge base without any resolution. Enclosed is a snippet of my php3.ini file and code used.
I am using NT4, IIS4, exchange smtp services
Thanks alot.
Vin
MY Code
<body>
Test mail send<br>
<?php
$to \"enzo67@yahoo.com\";
$from \"vcatrambone@myserver.com\";
$subject \"Hi\";
$message \"this message\";
mail($to, $subject, $message, \"$from\r\nX-Priority: 1 (Highest)\") or print \"could not send mail\";
?>
</body>
MY PHP.ini File
[mail function]
SMTP = abc.myserver.com ;for win32 only
sendmail_from = vcatrambone@abc.com ;for win32 only
sendmail_path = ;for unix only, may supply arguments as well (default is sendmail -t)
RESULT:
Test mail send
Parse error: parse error in c:\inetpub\wwwroot/testmail.php3 on line 5