Knowledge Base

Explanation and solutions for emailer.php line 234 error
Article ID: 7
Written By: Marshalrusty
Written On: Thu Sep 20, 2007 7:13 am
Description: Offers an explanation and possible fixes for the common error: Failed sending email :: PHP :: Line : 234 File : emailer.php
Link to this article: Select All
[url=http://www.phpbb.com/kb/article/explanation-and-solutions-for-emailerphp-line-234-error/]Knowledge Base - Explanation and solutions for emailer.php line 234 error[/url]

Introduction
    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
      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.
    • Note* the image below shows gmail, however gmail can not be used on phpBB2 due to the way in which it authenticates.
      Image

I hope this has been helpful. If you find a mistake in this article, please PM me.

20070920 - Removed incorrect info about gmail - karlsemple