Hey dear,
Thanx for the help. I did that code in php. Have a check below:
<?php
if(isset($_POST['submit']))
{
$to = '
[email protected]'; // change e-mail adress
$send_date = date('d-m-Y H:i:s');
$message = '
Contact
Data trimitere: '.$send_date.'
First Name: '.$_POST['first'].' |
Last Name: '.$_POST['last'].' |
Company: '.$_POST['cname'].' |
Designation: '.$_POST['desi'].' |
E-Mail: '.$_POST['email'].' |
Add1: '.$_POST['add1'].' |
city: '.$_POST['city'].' |
state: '.$_POST['state'].' |
zipcode: '.$_POST['zip'].' |
Country: '.$_POST['country'].' |
Phone: '.$_POST['phone'].' |
Cell number: '.$_POST['cell_no'].' |
Questions: '.$_POST['question'].' |
Suggestions:
'.$_POST['suggestions'].' |
';
$headere = "MIME-Version: 1.0\r\n";
$headere .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headere .= "From: ".$_POST['first']." ".$_POST['cname']."<".$_POST['email'].">\r\n";
mail($to, $send_date, $message, $headere);
echo 'Your details has been submittted to $to!';
}
else
{
echo "blarg! Sorry for the inconvinence!";
}
?>
now when i click submit button it directly gives the else statement in my php code which is “blarg! Sorry for the inconvinence!”
It dosent send me the email. Can you help me further with this ?