Mail problems in 2.0.5?

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
mkruer
Registered User
Posts: 74
Joined: Mon Apr 28, 2003 7:49 pm

Post by mkruer »

System the forms are running on.
Apache: 1.3.26 (Unix)
PHP: 4.1.2
Host System: Linux usw-pr-web1 2.4.14-lvm1.0.1rc4-ext3-0.9.15-grsec-1.8.8-servers11 #1 SMP Fri Nov 16 14:51:26 PST 2001 i686 unknown

I used to be getting the error, but e-mails were still being sent.

Code: Select all

Failed sending email :: PHP :: 0 

DEBUG MODE 

Line : 246 
File : /data/members/free/tripod/es/f/c/i/fcieu/htdocs/includes/emailer.php
So to try to get rid of the error I replace the code

Code: Select all

		$this->extra_headers = (($this->replyto != '') ? "Reply-to: <$this->replyto>\n" : '') . (($this->from != '') ? "From: <$this->from>\n" : "From: <" . $board_config['board_email'] . ">\n") . "Return-Path: <" . $board_config['board_email'] . ">\nMessage-ID: <" . md5(uniqid(time())) . "@" . $board_config['server_name'] . ">\nMIME-Version: 1.0\nContent-type: text/plain; charset=" . $this->encoding . "\nContent-transfer-encoding: 8bit\nDate: " . gmdate('D, d M Y H:i:s Z', time()) . "\nX-Priority: 3\nX-MSMail-Priority: Normal\nX-Mailer: PHP\nX-MimeOLE: Produced By phpBB2\n" . trim($this->extra_headers) . (($cc != '') ? "Cc:$cc\n" : '')  . (($bcc != '') ? "Bcc:$bcc\n" : ''); 
with

Code: Select all

		$this->extra_headers = (($this->replyto != '') ? "Reply-to: <$this->replyto>\n" : '') . (($this->from != '') ? "From: <$this->from>\n" : "From: <" . $board_config['board_email'] . ">\n") . "Return-Path: <" . $board_config['board_email'] . ">\nMessage-ID: <" . md5(uniqid(time())) . "@" . $board_config['server_name'] . ">\nMIME-Version: 1.0\nContent-type: text/plain; charset=" . $this->encoding . "\nContent-transfer-encoding: 8bit\nDate: " . gmdate('D, d M Y H:i:s Z', time()) . "\nX-Priority: 3\nX-MSMail-Priority: Normal\nX-Mailer: PHP\nX-MimeOLE: Produced By phpBB2\n" . $this->extra_headers . (($cc != '') ? "Cc:$cc\n" : '')  . (($bcc != '') ? "Bcc:$bcc\n" : ''); 
but I got the same error

Code: Select all

Failed sending email :: PHP :: 0 

DEBUG MODE 

Line : 246 
File : /data/members/free/tripod/es/f/c/i/fcieu/htdocs/includes/emailer.php
To make matters worse, now no e-mail are going out, despite reverting to the older code.

On top of that when I try to create a new user the first thing that pops up in the user name is a bunch of garbage "J0txmk2WvY8=" anyone one else experiencing this? and when I fill out the information and submit it I get.

Code: Select all

Failed sending email :: PHP ::
But no location on where it failed, and no e-mail sent out.

Nothing has changed since I update the file from version 2.0.4

Right now about the only solution I have disable the error checking here.

Code: Select all

//define('DEBUG', 1); // Debugging on
define('DEBUG', 1); // Debugging off
should be changed to

Code: Select all

//define('DEBUG', 1); // Debugging on
define('DEBUG', 0); // Debugging off
This is a band aid but not a fix, for no new users can register, and e-mails are sent out to the users.

Help!
Waldfee
Registered User
Posts: 21
Joined: Sat May 25, 2002 4:48 pm

Post by Waldfee »

hi,

I am also getting errors on sending PMs like:
Failed sending email :: PHP :: 0

DEBUG MODE

Line : 246
File : /....................../phpBB/includes/emailer.php


It looks like the PM is sent anyway..... however I have not tried e-mails, mass mails and so on but probably the same as other users already described.

Running phpBB 2.0.5 under the following conditions:

host: Lycos/Tripod
php: PHP4u Version 3.0 Based on PHP-4.3.2
mysql: 3.23.52

Any help would be greatly appreciated :wink:

Thanks
Waldfee
Idoru
Registered User
Posts: 15
Joined: Sat Oct 05, 2002 6:54 pm

Post by Idoru »

So no luck on an official fix from phpBB Support, yet?
psyburn21
Registered User
Posts: 24
Joined: Thu Jun 26, 2003 2:24 pm
Location: Laying on Eclair's Lap.
Contact:

Post by psyburn21 »

Idoru wrote: So no luck on an official fix from phpBB Support, yet?

Doesn't look like it.
User avatar
px1369
Registered User
Posts: 42
Joined: Tue Aug 13, 2002 4:37 pm

Post by px1369 »

Curious why it worked before but now doesn't.
I am still using phpbb v 2.0.4 haven't done the upgrade and yet I experience these problems also.

Server Specs: GenuineIntel, Intel(R) Pentium(R) 4 CPU 1.70GHz
Operating system Linux
Kernel version: 2.4.20
Apache version 1.3.27 (Unix)
PHP version 4.3.1
MySQL version 4.0.12
Email Server: either (SMTP or sendmail)

Problem is with sending Mass email. Can send to usergroups, just not All Users.

Any help appreciated.
I am, therefore I think.
I think, therefore I am.
Therefore I think I am?
jlissy87
Registered User
Posts: 11
Joined: Thu Jan 02, 2003 5:17 am

Mass E-mail Help

Post by jlissy87 »

I use the Lycos UK server for my forum. I don't know what server it is or what e-mail client they use. But the mass e-mailer stopped working when I updated to 2.0.5 from 2.0.4. It still works when I send a mass e-mail to my moderators group, but it doesn't work when I try to send a mass e-mail to all users. I installed all the patches, but it still doesn't work. I get the error:

Failed sending email :: PHP :: 0
Last edited by jlissy87 on Tue Jul 01, 2003 10:27 pm, edited 1 time in total.
pferrigan
Registered User
Posts: 13
Joined: Tue May 13, 2003 12:50 am

Post by pferrigan »

OS: Redhat 7.1 (dedicated server)
Webserver: Apache 1.3.27
PHP: 4.3.2
Db: MySQL 4.0.13
Mail server: Sendmail 8.12.9

Errors: Occurs when new user registers
(Failed sending email :: PHP :: 0

DEBUG MODE

Line : 246
File : /var/www/html/pre-ban/forums/includes/emailer.php )
mkruer
Registered User
Posts: 74
Joined: Mon Apr 28, 2003 7:49 pm

Post by mkruer »

For some reason I get the feeling there is going to be a 2.0.6 version released sometime in the immediate future. Looking at the rest of the forums, this has become a semi major issue.
TR_TERMINATOR
Registered User
Posts: 444
Joined: Tue Apr 22, 2003 6:35 am
Location: United Kingdom
Contact:

Post by TR_TERMINATOR »

urghhh i don't! most people experiencing these problems should go back to 2.0.4 while waiting for 2.2! :?
nprajan
Registered User
Posts: 1
Joined: Wed Jul 02, 2003 5:14 am

emailer Patch works on my setup of phpbb 2.0.5

Post by nprajan »

Applied the patch based on Acyd Burn's guidelines:
http://www.phpbb.com/phpBB/viewtopic.ph ... 497#642497

<b>works OK!</b> i can now send mass emails to all users and specific user groups :D

my problem was similar to Ice Cold's:
http://www.phpbb.com/phpBB/viewtopic.ph ... 208#650208

my config:
- phpbb2.0.5
- iis 5.0, win2k
- external smtp server


what i realised:
before applying the emailer patch, the entire list of member emails was being displayed in the Header, just after the X-AntiAbuse section, e.g.:

Code: Select all

Board servername - www.foobar.com
X-AntiAbuse: User_id - 2
X-AntiAbuse: Username - admin
X-AntiAbuse: User IP - 127.0.0.1Bcc:<>,<joe@abc.com>,<billy_bo_54@yahoo.com>,<googa@myway.com>
after applying the patch, i no longer see the BCC list - it would have been scary if it did, as it would have been a major privacy / security concern. not sure whether this was just a fluke, or whether it was a result of the patch.
Waldfee
Registered User
Posts: 21
Joined: Sat May 25, 2002 4:48 pm

Post by Waldfee »

heya,

I have applied Acyd Burn's patch and still getting the same error on sending PMs:
Failed sending email :: PHP :: 0

DEBUG MODE

Line : 246
File : /....................../phpBB/includes/emailer.php


any idea?
kkks
Registered User
Posts: 50
Joined: Mon Jul 08, 2002 3:48 am
Location: Auckland, New Zealand
Contact:

Post by kkks »

Detail of my problem:
I had the emailer.php error only when replying messages (aka email notification) No problem with Private Messages or new registering

Hosting Company: CommuniTech.Net
Server OS: Solaris 2.7
My server: Apache/1.3.26 (Unix)
PHP Version: 4.2.3
MySQL version: 3.23.43
email server: I don't know.

Problem solved by applying Acyd Burn's patch and enable Use SMTP Server for email.
SillyDog701: Netscape Browser Archive | Browser Version Guide | Message Centre | MacCentre701
MozInfo - Mozilla Information Centre
User avatar
RCAmerica1
Registered User
Posts: 49
Joined: Tue May 06, 2003 3:36 am
Location: Hawaii
Contact:

Post by RCAmerica1 »

PHP Version 4.2.0
System Windows NT 5.0 build 2195
Server API Apache
MySQL Support Ver. 3.23
Apache/1.3.24

The only problem with my story is I am not running 2.05 but the previous version. So I do not think this was with 2.05 inherently.

Http://spadworld.net

I get no errors but I do not get any post notifications, and neither do a lot of people.
Kelta
Registered User
Posts: 2
Joined: Mon Jun 16, 2003 12:07 pm

Post by Kelta »

i get
Failed sending email :: PHP :: 0

DEBUG MODE

Line : 246
File : /*******************/includes/emailer.php


this is just replying to a post, a member in the topic must of enabled email notification "notify me when a reply is posted"

i have applied all the fixes except the turn off debug thingy.

hope this gets sorted soon
User avatar
illona
Registered User
Posts: 86
Joined: Sun Aug 25, 2002 11:52 am
Location: England
Contact:

Post by illona »

Wow, I don't think I'll upgrade just yet, after reading this. :?
Locked

Return to “2.0.x Support Forum”