Hi,
Here I am trying to receive an email from visitors to my website.
But my mail function not working.
Please help.... this is what I am trying..
PHP Code:
$mg = $_POST['info']; $em = $_POST['email']; $nm = $_POST['name']; $to = 'info@myemail.com'; $subject = 'A quote from user.'; $message = $mg." ".$em." ".$nm; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers = 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
mail($to, $subject, $message, $headers);
The form.
<form name="askquote" method="post" id="askquote" action="controller/askquote.controller.php">
Please help.
|