Hello
I have a contact form and after filling the contact page, an email notification will be send to the user.
My code for that is below.
<?
$to = "to:xyz@abc.com";
$from = "from :pqr@abc.com";
$subject = "Thank you";
$body = "Hello,\n\n";
$body .= "dsdsds\n";
$body .= "wsdsdsdss.\n\n";
$body .="dsds\n";
$body .="dsdsdsds";
@mail($email,$subject,$body,$to,$from);
exit;
?>
When I run in the server, it's not working and I am sure I have to add some few more lines of code. And do I have to do any settings in the server?
Can anyone help me in doing this?
Thanks in advance.
Jc