Hi,
I called comcast, my ISP provider, and the lady told me to put "SMTP = mail.comcast.net", but the whole thing happened in less than a 30 sec, and I didn't get the feeling she really understood what I wanted or what I was talking about!!
Shawnk, I thank you for your feed back. The mail is still not working. Maybe you can look at it if you have time.
Here is my php.ini file, after I made the changes:
[mail function]
; For Win32 only.
SMTP = smtp.comcast.net
smtp_port = 25
; For Win32 only.
;sendmail_from = masood131@yahoo.com
Here is my "feedback.html". Please note my '$toaddress" in the codes below is different from the 'SMTP = smtp.comcast.net'. Could that be the reason it is not working? What suggestions would you have?
<html>
<head>
<title>Bob's Auto Parts - Customer Feedback</title>
</head>
<body>
<h1>Customer Feed Back</h1><br />
Please tell us what you think
<form action="processfeedback.php" method="post">
Your name <br />
<input type="text" name="name" size="40" /><br />
Your email address<br />
<input type="text" name="email" size="40" /><br />
Your feedback<br />
<textarea rows="5" cols="30" name="feedback"></textarea><br />
<input type="submit" value="Send feedback" size="40" />
</form>
</body>
</html>
Here is my "processfeedback.php"
<?php
//create short variable
$name = $_REQUEST['name'];
$email = $_REQUEST['email'];
$feedback =$_REQUEST['feedback'];
$toaddress = 'masood131@yahoo.com';
$subject = 'Feedback from web site';
$mailcontent = 'Customer name: '.$name."\n"
.'Customer email: '.$email."\n"
."Customer comments: \n".$feedback."\n";
$fromaddress = 'From: [email]masood131@yahoo.com[/email]';
if(mail($toaddress, $subject, $mailcontent, $fromaddress) === false)
{
echo "There was an error sending the email.";
}
else{
echo"<html>
<head>
<title>Bob's Auto Parts- Feedback Submitted</title>
</head>
<body>
<h1>Feedback Submitted</h1>
<p>Your feedback has been sent.</p>
</body>
</html>";
}
?>
And finally here is what I get everytime I run "feedback":
There was an error sending the email.