Hi
all
I am trying send the mail from php. But it is not delivering the mail to the address and it is not giving any error.
<?php
if(isset($_REQUEST[‘Submit’]))
{
$first=$_REQUEST[‘fname’];
$companyname=$_REQUEST[‘cname’];
$addres=$_REQUEST[‘address’];
$cityname=$_REQUEST[‘city’];
$statename=$_REQUEST[‘state’];
$number=$_REQUEST[‘mob’];
$alternate=$_REQUEST[‘mob1’];
$email=$_REQUEST[‘email’];
$messageuu=$_REQUEST[‘subject’];
$subject=“Contact Details”;
$header = “From:'”.$first.“'”;
$subject1=“Auto Reply”;
$header1 = “From: ‘http://www.redchillies.com’”;
$message="Hi ,
\
Thank You \
\
http://www.redchillies.com";
mail($email,$subject1,$message,$header1);
$messagebody="Hi , \
\
First Name : '.$first.'\
\
company Name: '.$companyname.' \
\
Address: '.$addres.'\
\
City Name: '.$cityname.'\
\
State Name: '.$statename.'\
\
Mobile : '.$number.'\
\
Alternate Mobile : '.$mob1.'\
\
Email-id : '.$email.'\
\
Message: '.$messageuu.'\
";
if(mail(‘samiuddin.adse@gmail.com’,$subject,$messagebody,$header))
{
print $msg=“Your Details have been sent successfully”;
}
else {
echo(“<p>Message delivery failed…</p>”);
}
}
?>
I tried to find out the error. but could not find out
please help me out
Thanks & Regards
MD.Samiuddin