08-14-2012, 03:24 AM
Hi all,
My THT installation is not sending out any email using PHP Mail funtion. When i try to send an email to a user it says "Email was not sent out!"
I am using latest THH v1.3.5.
Can someone please guide me on this?
I tested my mail () function and its working... Any idea?
I am using vBulletin to send emails and it working quite smoothly but i don't why its working with THT.
Regards
Fakher
My THT installation is not sending out any email using PHP Mail funtion. When i try to send an email to a user it says "Email was not sent out!"
I am using latest THH v1.3.5.
Can someone please guide me on this?
I tested my mail () function and its working... Any idea?
PHP Code:
<?php
$to = "[email protected]";
$header = "From: {$to}";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body, $header)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
if ( function_exists( 'mail' ) )
{
echo 'mail() is available';
}
else
{
echo 'mail() has been disabled';
}
?>
I am using vBulletin to send emails and it working quite smoothly but i don't why its working with THT.
Regards
Fakher
█ HostingDream - Free Shared and Reseller Cloud Hosting Offers
█ Shared | Reseller | Cloud Server | Cloud Linux |
█ Shared | Reseller | Cloud Server | Cloud Linux |