PHP Bulletin Board Home
News About Home
Features of phpBB Test drive phpBB Downloads Support for phpBB The phpBB Community Styles for customising phpBB 3rd party modifications to phpBB

Support Home | Knowledge Base Home | Submit Article | Search Articles | Browse Articles
 Fixes for emailer.php 
Description: Issues that pertain to the emailer.php file not sending mail by PHP and SMTP
Author: ScionCrow
Date: Sun Aug 21, 2005 8:04 pm
Type: Info
Keywords: emailer, smtp, pop, sendmail, php, email
Category: Information and notices
Seeing a lot of topics about emailer.php on line 234 inspired me to write this particular article. Apparently, this has been coming up quite a bit and could be a couple of things. But, mainly it's because your host has disabled the PHP sendmail function and that's what's going to be discussed.

Let's start off with the PHP function before we head into the SMTP settings of your forum.

Help! I'm getting this error!
Code:
Failed sending email :: PHP ::

DEBUG MODE

Line : 234
File : emailer.php


If your seeing this error, that means your host must of disabled the sendmail function on the server or just your account. The one thing you should do though is to first talk to your host as to why it was disabled. If he or she will not enable it, then continue on.
Now, to start off, you'll need your SMTP settings that you have gotten from your ISP. (Note: AOL servers will not work at all so, don't bother trying with an AOL account.) If you don't know your SMTP settings or you don't have an email account to use for SMTP, then ask your ISP for the information and such.

What's that? You say you have tried your SMTP settings and yet they don't work? Hmm, then try the next step then.


I've tried the last option, but, it won't work. Help!!
Code:
Ran into problems sending Mail. Response: 502 Command is locally disabled

DEBUG MODE

Line : 125
File : smtp.php


So, you've tried the last option and yet, you still can't send emails. I find this weird but, do a few things before I go.
  1. Double-check your settings and the password you've entered.
  2. If you know they are correct, talk to your ISP about the port they use.
  3. If you still can't get it to work, continue on.


If you don't know what the SMTP fields are, then here it is:
  • Use SMTP Server for email:
  • SMTP Server Address
  • SMTP Username
  • SMTP Password

If you can't find them, they are here: Administration Control Panel > General Admin > Configuration > Scroll down till you see the "Email Settings".

Alright, you've tried and tried, double-checked your settings and you still can't get it to work. Try talking to your ISP first before you talk to your host again. Something could be wrong on their side and they need to check their servers and such. If not, talk to your host and try to persuade him or her to enable the sendmail function in PHP. Because if you still can't get SMTP to work, then you need to try persuading your host to enable this function.

Just for a side-note, if you get the error while doing a private message, don't worry, they still recieved the message but, they just won't get the email for it. Basically, anywhere you see that message (besides Mass Email), they most likely have recieved the message and as such, nothing to worry about.

If your host forbids you from using anything inside phpBB using the sendmail() function, then install the No Mail MOD to prevent phpBB from sending any emails at all.

I hope y'all managed to fix the issue with this article, if you need any more help, please post in the phpBB Support forum rather than PMing me. (Unless you need to bring any mistakes to my attention, I'll appreciate that. ^_^)


0.0.1 - Added link to No Mail MOD - ScionCrow

Username: Password:
News | Features | Demo | Downloads | Support | Community | Styles | Mods | Links | Merchandise | About | Home
 © Copyright 2002 The phpBB Group.