I am new to the forum, so first off, hello to everyone!
I cannot get the php code below to send mail from website to my email address. When i use it, it throws up no error warnings at all, i just do not recieve any mail. I have no knowledge of PHP, therefor have no idea what needs to be changed in this code, which was provided for me to use with the flash form. I am hoping someone can help. I did change the you@yourdomain. com and info@yourdomain .com to my own address but changed nothing else in the php code.
[php]<?
$contactfield1= $HTTP_GET_VARS["contactfie ld1"]
$contactfield2= $HTTP_GET_VARS["contactfie ld2"]
$contactfield3= $HTTP_GET_VARS["contactfie ld3"]
$contactfield4= $HTTP_GET_VARS["contactfie ld4"]
$email_from = "you@yourdomain .com";
$email_subject = "" ;
//$email_txt = "";
$email_to = "info@yourdomai n.com";
$email_message = "field1: $contactfield1\ n
field2 :$contactfield2 \n
field3 :$contactfield3 \n
field4 : $contactfield4 \n
";
mail($email_to, $email_subject, $email_message, $email_from);
?>[/php]
I cannot get the php code below to send mail from website to my email address. When i use it, it throws up no error warnings at all, i just do not recieve any mail. I have no knowledge of PHP, therefor have no idea what needs to be changed in this code, which was provided for me to use with the flash form. I am hoping someone can help. I did change the you@yourdomain. com and info@yourdomain .com to my own address but changed nothing else in the php code.
[php]<?
$contactfield1= $HTTP_GET_VARS["contactfie ld1"]
$contactfield2= $HTTP_GET_VARS["contactfie ld2"]
$contactfield3= $HTTP_GET_VARS["contactfie ld3"]
$contactfield4= $HTTP_GET_VARS["contactfie ld4"]
$email_from = "you@yourdomain .com";
$email_subject = "" ;
//$email_txt = "";
$email_to = "info@yourdomai n.com";
$email_message = "field1: $contactfield1\ n
field2 :$contactfield2 \n
field3 :$contactfield3 \n
field4 : $contactfield4 \n
";
mail($email_to, $email_subject, $email_message, $email_from);
?>[/php]
Comment