Guest datapusher Posted October 6, 2004 Posted October 6, 2004 When I signed up I noticed that you allow sendmail access. 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. <?php // Your email address $email = "myemailaddress"; // The subject $subject = "Testing Mail Function"; // The message $message = "This was a test of the server's mail() function.\n\nIf you are reading this... IT WORKED!!!"; mail($email, $subject, $message, "From: $email"); echo "The email has been sent.";?> Now that was a simple as I could think of to make the script so I could test basic functionality. How do I go about making it work through your totalchoicehosting server? 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. Thank you for your time. Jim Thank you. Quote
TCH-Bruce Posted October 6, 2004 Posted October 6, 2004 TCH-Andy helped someone with a similar problem. Maybe taking a look at his post will help. Quote
Guest datapusher Posted October 6, 2004 Posted October 6, 2004 My mistake. The email in my script was addressed to the account on the other computer. Looks like you guys already did a good job of setting up the ini and sendmail. Thanks for your fast response though. 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. Thanks Quote
TCH-Bruce Posted October 6, 2004 Posted October 6, 2004 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. Quote
TCH-Don Posted October 6, 2004 Posted October 6, 2004 Welcome to the Family Jim and your new home! We really are like family here. So if you need anything, just ask your new Quote
TCH-Rob Posted October 7, 2004 Posted October 7, 2004 Jim, Welcome to the forums and welcome home. Thumbs Up Quote
TCH-Bruce Posted October 7, 2004 Posted October 7, 2004 Where are my manners? Welcome to the family, Jim! Quote
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.