Thread: getting mail to work / php
i have lamp setup on 8.10
here simple php mail script:
if($_post['email'])
{
$to = $_post['email'];
$subject = "bla";
$message = "read now";
$headers = 'from: bla.com' . "\r\n" .
'reply-to: al@bla.com' . "\r\n" .
'x-mailer: php/' . phpversion();
mail($to, $subject, $message, $headers);
echo "an alert has been sent.";
}
no errors returned, nor email sent.
ran function:
if (function_exists('mail'))
{
echo "looks php mail() installed/enabled else..";
}
else
{
echo "the problem php mail() not installed or enabled";
}
php mail() installed/enabled, there other setting or package
need install???
alnot.
we'll need more details abnout environment. server on home connection? said connection have static or dynamic ip? etc..
Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] getting mail to work / php
Ubuntu
Comments
Post a Comment