Jump to content

[SOLVED] Sendmail script wont run on Fasthosts


siliconwombat

Recommended Posts

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!

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", " [email protected]");  //Must be a fasthosts hosted email!
ini_set("SMTP", "smtp.fasthosts.co.uk");

 

Cheers guys!!

 

Tom

Archived

This topic is now archived and is closed to further replies.

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