This topic is locked

EMAIL PROBLEM

5/24/2008 5:48:01 AM
PHPRunner General questions
G
garethp authorDevClub member

Hi
I am wondering if anyone can help.
I have been using phprunner for about 6 months or so but never managed to get the email from an event to send.
I have simply put the code...

$email="test@test.com";

$message="Hello there\nBest regards";

$subject="Sample subject";

mail($email, $subject, $message);


changing ="test@test.com"; to my email address in an after record updated event.
However I have never managed to receive. My site is hosted in the UK by a hosting company.
What am I missing? I really need this functionality to work as would so improve my site.
I have seen in http://uk2.php.net/manual/en/mail.setup.php that you must

For the Mail functions to be available, PHP must have access to the sendmail binary on your system during compile time.


I have looked on my host package and it states the following

Path to sendmail /usr/sbin/sendmail -t -i


Do I need to add something to the script?
Hoping someone can help.
Gareth

G
garethp authorDevClub member 5/28/2008

All sorted - jsut started working - fantastic!!