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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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