Sendmail.php on testserver
Posted: Wed Nov 17, 2010 5:45 pm
I have got my apache 2.2 and php working no problem to deal with .php files
i'm trying to do a simple feedbackform from the tutorial i'm doing
I have set php.ini with the following lines
[mail function]
SMTP = mail.talktalk.net
smtp_port = 25
sendmail_from = "myemail"@talktalk.net
i have 3 basic files
feedback.html wich puts up an email box and message box and subit button
sendmail.php which is coded as follows
<?php
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
mail( "myemail@talktalk.net", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://localhost/basic/thankyou.html" );
?>
and a simple thanx for the thankyou.html
"NOTE: i have changed myemail and left the talktlak prt in so i don't recieve masses of junkmail"
Now when i send the feedback form i get the tankyou screen but recive non of the test emails. anyone got any ideas where i'm going wrong
Thnax all
i'm trying to do a simple feedbackform from the tutorial i'm doing
I have set php.ini with the following lines
[mail function]
SMTP = mail.talktalk.net
smtp_port = 25
sendmail_from = "myemail"@talktalk.net
i have 3 basic files
feedback.html wich puts up an email box and message box and subit button
sendmail.php which is coded as follows
<?php
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
mail( "myemail@talktalk.net", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://localhost/basic/thankyou.html" );
?>
and a simple thanx for the thankyou.html
"NOTE: i have changed myemail and left the talktlak prt in so i don't recieve masses of junkmail"
Now when i send the feedback form i get the tankyou screen but recive non of the test emails. anyone got any ideas where i'm going wrong
Thnax all