Chrisj Posted January 29, 2010 Share Posted January 29, 2010 I'm having an email issue, my web host support tells me "you are sending out messages as nobody@host1domain.com" (changed domain for this posting). I don't know where to fix this to something other than "nobody". I've looked in files, in the script, and don't know where this can be remedied. Couls this be the place: //Start Feedback - if($_POST['submited'] == "1"){ $your_email = "support@domain.com"; //This is your email address - $from = "From: feedback-form@domain.com". "\r\n"; //This will show as the email sender. - $user_email = $_POST['email']; $user_name = $_POST['name']; $subject = $_POST['subject']; $email_body = $_POST['comments']; $first_custom = $_POST['custom1']; $second_custom = $_POST['custom2']; if($user_email == "" or $user_name == "" or $subject == "" or $email_body == ""){ $error = "Please Fill In All Fields"; }else{ $message = "Feedback : \n \nUsers Email : $user_email \nUsers Name : $user_name \n\n\n Users Message : \n\n$email_body"; //SEND THE EMAIL - mail($your_email, $subject, $message, $from); $result = "Your Message Has Been Sent. Thank You"; } } //End Feedback - Quote Link to comment https://forums.phpfreaks.com/topic/190255-php-script-sending-nobodyhost1domaincom/ Share on other sites More sharing options...
isedeasy Posted January 29, 2010 Share Posted January 29, 2010 try your php.ini file Quote Link to comment https://forums.phpfreaks.com/topic/190255-php-script-sending-nobodyhost1domaincom/#findComment-1003784 Share on other sites More sharing options...
schilly Posted January 29, 2010 Share Posted January 29, 2010 have you tried sending it to yourself to verify? Quote Link to comment https://forums.phpfreaks.com/topic/190255-php-script-sending-nobodyhost1domaincom/#findComment-1003794 Share on other sites More sharing options...
Chrisj Posted January 29, 2010 Author Share Posted January 29, 2010 Thanks for your replies. I've looked around and have no idea where php.ini may be or if it exists. Any ideas where this file may typically be? Regarding "have you tried sending it to yourself to verify?" I'm not sure what you are suggesting. What is "it"? Please clarify. thanks Quote Link to comment https://forums.phpfreaks.com/topic/190255-php-script-sending-nobodyhost1domaincom/#findComment-1003803 Share on other sites More sharing options...
schilly Posted January 29, 2010 Share Posted January 29, 2010 you have tried sending the form to yourself so you can verify the from field? Quote Link to comment https://forums.phpfreaks.com/topic/190255-php-script-sending-nobodyhost1domaincom/#findComment-1003804 Share on other sites More sharing options...
Chrisj Posted January 29, 2010 Author Share Posted January 29, 2010 Thanks again for your reply. I've completed and sent this form and it goes to the support@domain.com mail box and shows the FROM field to be feedback-form@domain.com Quote Link to comment https://forums.phpfreaks.com/topic/190255-php-script-sending-nobodyhost1domaincom/#findComment-1003812 Share on other sites More sharing options...
schilly Posted January 29, 2010 Share Posted January 29, 2010 you could be getting spammed then. someone might be injecting mail headers into your form fields. Quote Link to comment https://forums.phpfreaks.com/topic/190255-php-script-sending-nobodyhost1domaincom/#findComment-1003841 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.