- The purpose of this article is to explain and offer solutions for the following error:
- Code: Select all
Failed sending email :: PHP ::
DEBUG MODE
Line : 234
File : emailer.php
If you are seeing this error, mailing from the server has not been properly configured. The error will be displayed anytime that an email would be sent (right after registration, after posting, after sending a PM, etc.).
Solutions
- Fixing the problem
- Note* the image below shows gmail, however gmail can not be used on phpBB2 due to the way in which it authenticates.

- If you are the owner/administrator of the server running the phpBB installation, please see the many public tutorials available regarding this issue.
If you are using a hosting company, then the first order of business is to contact them. The majority of hosts do support mailing from the server, so simply reporting the error may solve the problem. If they have purposely disabled the mail function, ask if they have a local SMTP server you can use and what authentication information it requires (they may provide you with a username/password).
Using a SMTP Server
- If all else fails, you can use a SMTP server to send mail. You can find the "Email Settings" in the "Configuration" section of phpBB's Administration Panel (see image below). If your hosting company was helpful enough to provide you with their SMTP server information, enter it as directed.
Otherwise, you will need to find a SMTP server yourself. The good news is that there are many free/cheap ones available, just do a Google search.
I hope this has been helpful. If you find a mistake in this article, please PM me.
20070920 - Removed incorrect info about gmail - karlsemple