Thread: mailing problem
View Single Post
Old 05-07-2008, 02:59 AM   #1 (permalink)
@script
Recruit
 
Join Date: May 2008
Posts: 19
@script is on a distinguished road
mailing problem

Hi everybody,

I have wrote a php script to send a mail. It works fine with the mail id's of google,yahoo,rediff,... but it is not working for mail id of my company. Code reads as follows:
<?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;?>


i'm wondering for so many days why it is not working. Any help is appreciated.

thanks in advance.
@script is offline   Reply With Quote