My forum stopped sending emails

Started by Jojoba, December 05, 2019, 07:20:58 PM

Previous topic - Next topic

Jojoba

Yesterday I sent out an announcement for the first time to the entire membership. The error log shows a number of them could not be sent and since then no emails have been sent from the forum. I have no idea what happened or how to fix it. Can anyone help?

Thanks

vbgamer45

What is the error message? in the error log?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

SpacePhoenix

Ask your host if they've temporarily blocked you from sending emails. You might have fallen foul of a limitation imposed by your host on the total number of emails and/or frequency of emails sent per day

Jojoba

I did talk to the host and they say the limit is 10,000 emails a day. With only 135 members I don't even come close to that. They said something about making some changes to the DNS and said it should work in a few hours...that was yesterday and no change.

The error log just says unable to send mail to each separate email address it tried to send to. I now have the queue enabled and there are about 10 messages in the queue. When I try the send queue now command nothing happens.

vbgamer45

I would post the error message to your host have them look into it. Hard to say without the complete error message.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Jojoba

I have been trying to troubleshoot with the host and still the forum will not send out emails. Today it is not even showing an error log anymore...the emails just disappear as if they were sent, but no one receives them. I have replaced the scheduled tasks.php file with a backup from when it was working but that didn't make any difference. I have tried switching from php mail to smtp mail and the problem persists. Any suggestions as to where else the problem might be?

vbgamer45

It sounds like a host issue might have blocks on outbound smtp.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Jojoba

The host is saying from their end everything seems to be working as expected. Any idea what file might have gotten corrupted? Is it possible that sending an announcement to all 136 members at one time caused some kind of overload? If so, where do I go to fix it?

Thanks for responding!

Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Jojoba

Ok, I downloaded the test mail.php file and uploaded it to the server in my public_html folder. However, I don't know how to run the script...when I go to the forum I'm not sure where to look for it...

Sir Osis of Liver

It's a standalone script, just link to it directly.  You have to manually fill in webmaster address and mail to address.  If email is sent, you'll get white screen with 'Success!' at top, if not you'll see 'Fail...'.



<?php
// Add your name between quotes
$from_name "Your forum";
// Add the origin email address between quotes (the same email you set in SMF's Webmaster email address)
$from_email "webmaster address";
$headers "From: $from_name <$from_email>";
// You are free to change the body and subject of the test email in the next lines, but the default should work fine
$body "Hi, \nThis is a test mail from $from_name <$from_email>.";
$subject "Test mail from localhost";
// Add the destination email address between quotes (the recipient of the test email)
$to "mail to address";
// When running the script, you will see in your browser "Success!" or "Fail...", depending on whether the test was successful or not. DON'T CHANGE THIS
if (mail($to$subject$body$headers)) {
   echo 
"Success!";
} else {
   echo 
"Fail...";
}
?>




Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Jojoba

Sorry to be so dense but I don't know what you mean by standalone script or linking to it directly. How do I do that and where??? Was I correct in uploading the test mail.php to my server files? Or should I do something else with it?

  I did fill in the webmaster address and mail to address.




Sir Osis of Liver

If the file is in /public_html, just link to www.yourdomain.com/testmail.php and it will run.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Jojoba

Ok, thanks for your patience...that made sense. I did it and I got Fail. Now what?

Sir Osis of Liver

Emails are not being sent.  Look in Admin -> Mail -> Settings, are you using php mail or smtp?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters


Jojoba

I decided to switch it to smtp again and I was able to get a personal message through using smtp. However, even when using smtp, I still get fail with the testmail.php script.

Jojoba

Thank you everyone for your help! Perhaps someday I'll know enough to help someone else...

Advertisement: