Jump to content

Recommended Posts

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 -

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.