i've added the headers in, but firstly i thought the mail function should stil work as long as it has the three parameters to, email message, subject. but anyway i still get the same parse error message im using the code;
<?php
$to = "ass12@le.ac.uk";
//$from = "support@example.com";
$title = "an example";
#setting a header
$header = "From:
info@host.com\r\n";
$body = " e-mailbody Dear subscriber,This e-mail confirms your purchase of a 30 day e-mail support subscription. Please direct all requests to
support@example.com. Thank you, The Example.com support staff e-mailbody";
#now sending
$success = mail($to,$title,$body,$header);
?>
and my php.ini looks like;
SMTP = localhost ; for Win32 only
smtp_port = 25
sendmail_from=
ass12@localhost.com ; for Win32 only
is that how it should be?? and also ive been reading up and i read somewhere that if a firewall is active on the computer then it sometimes blocks the smpt_port = 25 is this true?
any ideas??
cheerz