E-Mails - Why are members not getting emails sent from the forum From Online Manual

Revision as of 11:51, 1 July 2013 by Illori (talk | contribs) (Bot: Automated text replacement (-< +<))
Jump to: navigation, search

First check your error logs for any indication of what the problem may be. Before you begin to troubleshoot the reasons for your forum not sending out emails, contact your hosting provider to see if they can help or confirm the information you are entering is correct. In many cases contacting your hosting provider will speed up the process of solving your issues.

Check for errors within your forum error log

Common errors you will see within your error log are:

  • Could not connect to SMTP host
  • 2: fsockopen() has been disabled for security reasons

This error is pretty self explanatory in that your error log is telling you that the SMTP information you have provided is not correct, i.e cannot connect to send your mail. Check the information again and contact your host to make sure the information you are entering is correct.

The second error message listed above indicates your webhost has disabled the PHP default setting for sending mail from your SMF installation. You will need to contact your host and ask them to enable this for you.

Is my server blacklisted?

Because of the growth of spam these days it is quite possible that your emails are being detected as spam!

The following links will help you find information regarding any potential blacklist your server may be listed on.

Using GMAIL SMTP?

If you use Gmail for SMF's SMTP - meaning to send emails from SMF. Gmail will not work in most cases. Gmail will only accept SSL encrypted emails, which most servers do not support.

Server configured correctly for sending mail?

To check if your server is configured correctly for sending mail then use this test script below. Just replace the YOUR-EMAIL-HERE with your own email address to check if the mail function works, if it fails, try using SMTP. IMPORTANT: Remember to remove this test script immediately.

Save as testmail.php and upload to your server.

If you do not receive an email from your server then contact your host and explain you currently cannot send mail from your forum. During this time you will have to use the SMTP settings for sending mail rather than the (php) default value.

<?php

$mail = mail("YOUR-EMAIL-HERE", "wahahahahahaahahahahaa","I like spamming your inbox!!!", "From: Myself<[email protected]");

if(!$mail){
	echo '<font color="red">mail is not sent!</font>';
} else {
	echo '<font color="#00FF00">mail is sent :-)</font>';
}

?>

Again, be sure to delete the test script when finished, or spam email can be sent to the email address used in the script.



Advertisement: