Problem Using Php's Mail() Function

liunx

Guest
When I signed up I noticed that you allow sendmail access.<br /><br />I have a php contact form that I need as my contact source. After testing my complex script to no avail... I have written a short script to test mail() on your server.<br /><br /><?php<br /><br />// Your email address<br />$email = "myemailaddress";<br /><br />// The subject<br />$subject = "Testing Mail Function";<br /><br />// The message<br />$message = "This was a test of the server's mail() function.\n\nIf you are reading this... IT WORKED!!!";<br /><br />mail($email, $subject, $message, "From: $email");<br /><br />echo "The email has been sent.";?><br /><br />Now that was a simple as I could think of to make the script so I could test basic functionality.<br /><br />How do I go about making it work through your totalchoicehosting server?<br /><br />Do I need to configure a special sendmail thingy. I am used to setting it up in my own severs in the php.ini file.<br /><br />Thank you for your time.<br /><br />Jim<br /><br />Thank you.<!--content-->
TCH-Andy helped someone with a similar problem. Maybe taking a look at <a href="http://www.totalchoicehosting.com/forums/index.php?showtopic=12648&view=findpost&p=86449" target="_blank">his post</a> will help.<!--content-->
My mistake.<br /><br />The email in my script was addressed to the account on the other computer.<br /><br />Looks like you guys already did a good job of setting up the ini and sendmail.<br /><br />Thanks for your fast response though.<br /><br />One more question. Can I send to anyone? Or just to myself on the domain. i ask this because I would like to include a email that is sent out as a confirmation when they fill out my cointact page.<br /><br />Thanks<br /><br /> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /><!--content-->
You should be able to send to anyone as long as it is coded properly. Be careful not to leave the script open for spammers to attack.<!--content-->
<img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /> Welcome to the Family Jim <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /> <br /><br />and your new home!<br /><br />We really are like family here.<br />So if you need anything,<br />just ask your new<!--content-->
Jim,<br /><br />Welcome to the forums and welcome home. Thumbs Up<!--content-->
Where are my manners?<br /><br />Welcome to the family, Jim! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /><!--content-->
 
Back
Top