Skip to main content

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

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support