mailing problem
Posted: Tue May 06, 2008 4:54 am
Everah | Please use bbCode tags for code when posting code in the forums.
Hi,
i am using php mail code to send the mail.following is the code:
it works fine for the mail id's like yahoo,gmail,rediff,... but it is not working for the mail id of my company, like maheshkumar.davuluri@bipsum.com.
can any body please help me in this regard.
thanks in advance
Hi,
i am using php mail code to send the mail.following is the code:
Code: Select all
<?php
$to = 'maheshkumar.davuluri@bipsum.com';
$subject = $_POST['txtSub'];
$name = $_POST['txtName'];
$com = $_POST['txtCom'];
$email= $_POST['txtEmail'];
$city = $_POST['txtCity'];
$con = $_POST['txtContry'];
$ph1 = $_POST['txtPh1'];
$ph2 = $_POST['txtPh2'];
$comm = $_POST['txtAr'];
$message = "---------------------------\n".
"----Sender's detail's------\n".
"Name of the Sender : $name\n".
"Company Name : $com\n".
"Email Id is : $email\n".
"City : $city\n".
"Country : $con\n".
"Contact number : code-$ph1 , number-$ph2\n".
"-----Comment's------------\n".
"$comm\n".
"--------------------------\n";
mail($to,$subject,$message,$headers);
header("Location:http://www.bipsum.com/thankyou.html");
exit;?>can any body please help me in this regard.
thanks in advance