Jump to content

php script sending "[email protected]"


Chrisj

Recommended Posts

I'm having an email issue, my web host support tells me "you are sending out messages as [email protected]" (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 = "[email protected]";  //This is your email address -
            $from = "From: [email protected]". "\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 -

Link to comment
https://forums.phpfreaks.com/topic/190255-php-script-sending-nobodyhost1domaincom/
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.