Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Email was not sent out!
#1
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?
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 |
Reply
#2
Hello.

Are you using PHP Mail() for THT, or are you using the SMTP (PEAR) option?
Remote Servers - Shared, Reseller & KVM Hosting Services
Reply
#3
At the moment i am using SMTP option for emails. But i want to fix PHP Mail().
HostingDream - Free Shared and Reseller Cloud Hosting Offers
█ Shared | Reseller | Cloud Server | Cloud Linux |
Reply
#4
Check your "From" e-mail field. You might have mistyped anything that included an invalid character.
Remote Servers - Shared, Reseller & KVM Hosting Services
Reply
#5
i double checked it nothing wrong Sad still can't send the emails out
HostingDream - Free Shared and Reseller Cloud Hosting Offers
█ Shared | Reseller | Cloud Server | Cloud Linux |
Reply
#6
my sendmail path is
Quote:/usr/sbin/sendmail
is it ok?
HostingDream - Free Shared and Reseller Cloud Hosting Offers
█ Shared | Reseller | Cloud Server | Cloud Linux |
Reply
#7
If you can use the SMTP (PEAR) option fine, then just use it until someone else gives you insight. I'm sorry but I have no idea what the problem is here. :S
Remote Servers - Shared, Reseller & KVM Hosting Services
Reply
#8
Sad ok anyone else can help me then Sad ?
HostingDream - Free Shared and Reseller Cloud Hosting Offers
█ Shared | Reseller | Cloud Server | Cloud Linux |
Reply
#9
The test you mentioned in OP won't test your email functionality using SMTP.

If Mail() is working on your server, why don't you just use that?
Jonny H - THT Main Developer & Founder


Reply
#10
PHP Mail() is not working for THT it works for vB forum but not for THT as mentioned earlier THT gives an error

"Email was not sent out!"

Now i am using SMTP to send emails in THT, but my question was why mails are not being sent out through THT (selecting PHP Mail) if PHP Mail () Function is working fine on my server?
HostingDream - Free Shared and Reseller Cloud Hosting Offers
█ Shared | Reseller | Cloud Server | Cloud Linux |
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)