Im new at this, so sorry if the problem is extremely simple.
I am hosting my website (http://www.iiinc.us) through godaddy.com and I am trying to use php to make a simple feedback form. As a test, I used the following code (saved to in a file test.php) to see If I could send email from their server:<?php $to="email@example.com"; $subject="test"; $body="Just testing the email script."; $headers="From: http://www.iiinc.us/test.php, I got the second message, so obviously something is wrong. I tried searching for answers and many tutorials and sites mentioned that i might have to use ini_set() to set the SMTP and the sendmail_from configurations. I tried calling tech support to ask for the smtp server, and they told me that I didnt have to do anything, just write correct code and upload it to my main directory, which I did. I also asked for help with my email script, but they said they couldnt answer those type of questions.
My questions: So am I missing something in the code? Do the parameters to the mail() function matter, or are they just text for the email message. Also maybe Im asking the wrong questions to tech support, so they’re giving me answers to the wrong problem.
Any help would be greatly appreciated.