siliconwombat Posted October 10, 2007 Share Posted October 10, 2007 Hi all, Im hoping you guys can help me as Im killing myself! Im trying to setup a sendmail script to email the contents of a form but never receive the email! The script appears to run correctly as it runs the redirect and no errors come up but the mail never arrives. Ive followed all the so called advice in the fasthosts FAQ but that hasnt seemed to do anything. I found a previous topic on here (http://www.phpfreaks.com/forums/index.php/topic,146766.0.html) and followed the advice on there and that gave me a 'Mail sent successfully' message and Im now looking for the next step. Thanks in advance! Tom edited to say: Email hasnt arrived again! Quote Link to comment https://forums.phpfreaks.com/topic/72589-solved-sendmail-script-wont-run-on-fasthosts/ Share on other sites More sharing options...
siliconwombat Posted October 10, 2007 Author Share Posted October 10, 2007 Dont worry I found the answer in a much older file! So thanks to those who answered it before!! For those who come after with the same problem place the following two lines of code at the top of your file ini_set("sendmail_from", " you@youremail.com"); //Must be a fasthosts hosted email! ini_set("SMTP", "smtp.fasthosts.co.uk"); Cheers guys!! Tom Quote Link to comment https://forums.phpfreaks.com/topic/72589-solved-sendmail-script-wont-run-on-fasthosts/#findComment-366052 Share on other sites More sharing options...
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.