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
User avatar
psoTFX
Former Team Member
Posts: 7425
Joined: Tue Jul 03, 2001 8:50 pm

Mail problems in 2.0.5?

Post by psoTFX » Tue Jun 24, 2003 11:03 am

Firstly let me say that we did test 2.0.5 as thoroughly as possible before release ... of course we cannot test on every concievable system and thus it is common for new bugs to appear while fixing existing ones.

This would appear to be the case for emailer. Obviously not everyone is experiencing these problems but a significant number are. So, to determine what is common between these occurences please post your server specs below; Hosting company, server operating system (e.g. Linux, FreeBSD, OpenBSD, Solaris, Windows, etc.), PHP version (e.g. 4.0.6, 4.1.2, 4.3.2, etc.), email server application (e.g. sendmail, qmail, postfix, etc.) and details on just when the problem occurs (e.g. "Occurs when sending mass email to all users", "Occurs when new user registers", "I receive X dozen messages when someone posts a new topic", etc.). If you don't have details on the server setup please check with your hosting provider before posting.

DO NOT post commentary or unrelated issues here ... they WILL be deleted and you will be warned (we want to tackle this issue not waste time responding to pointless posts). Just list the information requested above.

Edit by AcydBurn: [unstickied post] - All of you having problems, please update to the latest phpBB Version

albux
Registered User
Posts: 17
Joined: Fri Jun 20, 2003 6:02 pm

Mail Problems in 2.0.5

Post by albux » Tue Jun 24, 2003 12:31 pm

First of all thanks for attending those people who have this problem with 2.0.5

Following I detail you what you asked and I hope it helps you to solve the problem as soon as possible.

-Server Operating System: Red Hat Linux 7.1
-PHP version: 4.1.2
-Email server application: sendmail
-Hosting company: arsys.es (Spanish)
-When problem occurs? When sending a mass email to all users. This problem didn't appear when I had 2.0.4. It only sends the email to me (the administrator) and after sending the email (very fast for 110 users) it says it has sent the email successfully.

I hope this helps you.
Albux

User avatar
GoleyC
Registered User
Posts: 374
Joined: Thu Mar 14, 2002 5:22 pm
Location: Ohio
Contact:

Post by GoleyC » Tue Jun 24, 2003 12:39 pm

Server Specs: Linux/Dual PIII866/Apache powered servers.
Hosting Company: http://www.ecommercediscovery.com/
Server Operating System: Linux
PHP Version: 4.3.1
Apache Version: 1.3.27 (Unix)
Mysql Version: 4.0.13
Email Server: Sendmail

When the problem occurs: Only when sending Mass email, only the admin gets the email, and there are no bounced messages.
CG

User avatar
rizland
Registered User
Posts: 2
Joined: Tue Jun 24, 2003 1:19 pm

Post by rizland » Tue Jun 24, 2003 1:30 pm

Server Specs: Linux slackware 9.0/Pentium 4 2.4 Ghz/ 256M RAM/Apache 1.3.27.
Hosting Company: http://www.slackware-italia.com
Server Operating System: Linux slackware 9.0
PHP Version: 4.3.2
Apache Version: 1.3.27 (Unix)
Mysql Version: 4.0.13
Email Server: qmail

When the problem occurs: The same of GoleyC: only when sending Mass email, only the admin gets the email, and there are no bounced messages.
Last edited by rizland on Tue Jun 24, 2003 2:51 pm, edited 2 times in total.

JeFFJuH_NL
Registered User
Posts: 3
Joined: Sat Jun 21, 2003 8:18 am

Post by JeFFJuH_NL » Tue Jun 24, 2003 2:20 pm

Server Specs: Intel Pentium 4 1.5 GHz / 1024 MB RAM / 100 mbit AMS-IX
Hosting Company: http://www.kyra-emotion.nl
Server Operating System: SuSE Linux 7.3
PHP Version: Latest
Apache Version: 1.3.27 (Unix)
Mysql Version: Latest
Email Server: Local Mail Function (not sure which one that is)

The forum is running at http://forum.kyra-emotion.nl
When sending mass e-mail only I receive the e-mail.

User avatar
Dreamuk
Registered User
Posts: 46
Joined: Sat Jun 21, 2003 4:41 pm
Location: UK
Contact:

Post by Dreamuk » Tue Jun 24, 2003 2:27 pm

Thanks for the assist support, hpefully this can be fixed...

Server Specs: Apache 1.3
Hosting Company: Ipower
Server Operating System: Red Hat Linux
Perl Version 5.008
PHP Version: 4.2.3
Mysql Version: 3.23.56
Email Server: sendmail

I send mass e mails, and receive no errors in php what soever, but i receive all the emails, and the header of the mails, have the other e mail addresses inside, but no other e mails are sent....so i basically receive all the e mails.

Hope this can be resolved :)
Join our forum :-)
http://www.Ring4Tonez.com/forum
The Home Of Mobile Entertainment
Join Our Chat Room
http://www.Ring4Tonez.com/chat.php
Get Traffic from your PC Being Idle
http://www.ScreenBlaze.com/15139_taf

Master LL
Registered User
Posts: 121
Joined: Sun Jun 16, 2002 12:02 am

Post by Master LL » Tue Jun 24, 2003 4:09 pm

Hosting Company: Mylinuxisp
Server Operating System: RedHat 7.3 Linux kernel 2.4.20
Database: MySQL 3.23.56
PHP version: PHP 4.1.2
Email Server: sendmail

Problem: Only when sending Mass email (any teams or All Users), only the Admin gets the email, and there are no bounced messages. No error was stated (it said Mass email sent successfully).

Acyd Burn
Consultant
Consultant
Posts: 5830
Joined: Wed Dec 05, 2001 8:31 pm
Location: Behind You
Name: Meik Sievertsen

Post by Acyd Burn » Tue Jun 24, 2003 4:45 pm

All of you having problems with Mass Emailing, could you please apply the following 'patch' and tell us if it helped and if the other mail related functions are retaining to be operational too?

Open includes/emailer.php:

FIND

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" : ''); 
REPLACE 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" : ''); 
To clarify this, the only change is the non-trimming of $this->extra_headers at the end of the line.

Master LL
Registered User
Posts: 121
Joined: Sun Jun 16, 2002 12:02 am

Post by Master LL » Tue Jun 24, 2003 4:56 pm

Acyd Burn, it works!

My Admin-Team got all emails. I'm still waiting for one more confirmation (he's not online)... but 4 out of 5 users on my Admin-Team got it.

Looks like it's successful!

Edit-
PM, Direct email (that email button on msgboard) and Mass Email is working correctly! It seems that header was the cause (as I posted on the bug report). None of my members and moderators have any problems with the new coding yet. But if there is any, I'll of course let you all know.

Edit #2-
I tried sending an Mass Email to "ALL USERS" and I got this error:

Code: Select all

Failed sending email :: PHP :: 

DEBUG MODE

Line : 246
File : /home/blkhrtll/public_html/phpbb2/includes/emailer.php
I got the email myself .. but I'll have to fill you in later if the other 300+ members recieved the email.

merlin_magus
Registered User
Posts: 2
Joined: Tue Jun 24, 2003 5:47 pm

Post by merlin_magus » Tue Jun 24, 2003 6:03 pm

I have the same here, when a new user registers or in massive mail ...

------
Failed sending email :: PHP :: 0

DEBUG MODE

Line : 246
File : /data/members/free/tripod/uk/v/i/t/vitorianaoficial/htdocs/phpBB2/includes/emailer.php
-------

System:Debian GNU/Linux - Bi PIII 1Ghz - 1 Gb RAM - Kernel 2.4.x
MySql: v.3.23.52
PHP: 4.x
Host: tripod.lycos.co.uk

sbroyles
Registered User
Posts: 1
Joined: Tue Jun 24, 2003 5:55 pm

Post by sbroyles » Tue Jun 24, 2003 6:27 pm

-Server Operating System: Red Hat Advanced Server 2.1
-PHP version: 4.1.2
-Email server application: smtp
-Hosting company: self
-When problem occurs?
Occurs when sending mass email to all users and Occurs when new user registers

I get the following error:
General Error
Ran into problems sending Mail. Response: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)

DEBUG MODE

Line : 155
File : /var/www/html/phpBB2/includes/smtp.php
Steve

User avatar
Dreamuk
Registered User
Posts: 46
Joined: Sat Jun 21, 2003 4:41 pm
Location: UK
Contact:

Post by Dreamuk » Tue Jun 24, 2003 6:55 pm

works for me :)
Join our forum :-)
http://www.Ring4Tonez.com/forum
The Home Of Mobile Entertainment
Join Our Chat Room
http://www.Ring4Tonez.com/chat.php
Get Traffic from your PC Being Idle
http://www.ScreenBlaze.com/15139_taf

User avatar
rizland
Registered User
Posts: 2
Joined: Tue Jun 24, 2003 1:19 pm

Post by rizland » Tue Jun 24, 2003 7:36 pm

works for me too.

Thanks.

blackysheep
Registered User
Posts: 2
Joined: Tue Jun 24, 2003 12:58 pm

Post by blackysheep » Tue Jun 24, 2003 7:39 pm

-Server Operating System: UNIX
-PHP version: 4.x.x
-Email server application: sendmail
-Hosting company: hong kong

I keep on testing with different e-mail account
i found that it works sometimes, and sometimes not, even with the same e-mail account!!
i cannot get it, why i can have different result without touching the code at all? is it "subject" related?
Last edited by blackysheep on Tue Jun 24, 2003 7:48 pm, edited 1 time in total.

User avatar
GoleyC
Registered User
Posts: 374
Joined: Thu Mar 14, 2002 5:22 pm
Location: Ohio
Contact:

Post by GoleyC » Tue Jun 24, 2003 7:48 pm

Edited,

The emails had been sent, there was a huge delay in the time they went out to the time they arrived in many email boxes.

So, the code above did work~!
Last edited by GoleyC on Tue Jun 24, 2003 8:22 pm, edited 1 time in total.
CG

Locked

Return to “2.0.x Support Forum”