Managing Online Forums, a manual for the community admin

Bookmark and Share

"Failed sending email :: PHP" errors

"Failed sending email :: PHP" errors

Postby Thoul » April 7th 2005, 1:37 am

phpBB wrote:General Error

Failed sending email :: PHP ::

DEBUG MODE

Line : 234
File : emailer.php


This is a fairly common error that can appear in many situations. Most often, it is seen after submitting a registration form, making a reply post or sending a private message to another user. It can also be displayed when attempting to send a mass e-mail to a large number of users. As you may have guessed by now, there are a lot of possible causes and fixes for this error.
User avatar
Thoul
Admin/Webmaster
 
Posts: 18551
Joined: July 30th 2002, 11:30 am
Location: USA

Postby Thoul » April 7th 2005, 1:38 am

The main thing this error message usually represents is a problem with the method of sending out e-mail messages that phpBB has been told to use. By default, phpBB will try to use a server feature called sendmail. When this error appears in all of the cases mentioned previously, it can mean that sendmail is not installed on the server, has been removed by a server "upgrade," is malfunctioning or the server is configured incorrectly for sendmail to be used. In any of these cases, there is not much you can do unless you are the server owner and/or administrator, in which case you likely know how to fix sendmail already. Assuming you are not the server owner/administrator, you can attempt to contact that person to find out if sendmail is available, configured and working correctly on the server. Some servers, most notably those running a version of the Windows operating system, may not have sendmail available. In these cases, you will need to switch your forum to an SMTP mailing service.

SMTP, for the many readers of this tutorial that will have never heard of it before, is basically a way of sending e-mail messages through a separate, remote server instead of the server hosting your forum. To switch the forum to SMTP, you can use some settings found near the bottom of the Admin Panel > General > Configuration page. You will have to fill in a server address, a username, a password and possibly other information. Your web host may provide this information if they make a SMTP mailing service available. If they have no such service, you will have to locate one on your own through Google. Some internet service providers (ISPs) provide SMTP mailing services to their clients, so that may also be an option for you.
User avatar
Thoul
Admin/Webmaster
 
Posts: 18551
Joined: July 30th 2002, 11:30 am
Location: USA

Postby Thoul » April 7th 2005, 2:09 am

Sometimes the "Failed sending email :: PHP" error may appear only in a few circumstances. Perhaps it only appears when sending a private message or when posting a reply. In such cases, there may be an error in the coding of your forum. Any recently installed hacks that altered the affected services may be responsible and should be checked and double checked.

If you cannot find a solution through that, you may have to talk to your server's owner/administrator. Some servers limit the number of e-mails that can be sent from a site in a certain amount of time, such as no more than 1000 e-mails per 24 hours.

Mass E-mailing can often produce the error when attempting to send mails to too many users at one time. This can be a symptom of the e-mails per time limit or just a restriction on the number of addresses you can mail at once. Installing the MegaMail hack may be of help in these cases.

There are, of course, other situations that might cause the error which are not addressed here. If this tutorial does not help you solve the problem, please make a post in the Support Forums with as many details about your situation as possible.
User avatar
Thoul
Admin/Webmaster
 
Posts: 18551
Joined: July 30th 2002, 11:30 am
Location: USA


Return to phpBB 2: Troubleshooting

Who is online

Users browsing this forum: No registered users and 0 guests