Failed sending email ::PHP:: - Line 234 - Update?

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
sparrz
Registered User
Posts: 5
Joined: Wed Dec 06, 2006 7:43 pm

Post by sparrz »

Both above suggestions worked for me, the cancelling out the message die and the init string.

I am running 2.0.2.1, and I was about ready to go bald trying to figure this stuff out.

I think there should be a release on these two fixes together.

I did this and I look back to normal....

Code: Select all

Line 234 Problem area....

		// Did it work?
		//if (!$result)
		//{
		//	message_die(GENERAL_ERROR, 'Failed sending email :: ' . (($this->use_smtp) ? 'SMTP' : 'PHP') . ' :: ' . $result, '', __LINE__, __FILE__);
		//}

and then....Right below this....

Code: Select all

//<<<---Line 22
// The emailer class has support for attaching files, that isn't implemented
// in the 2.0 release but we can probable find some way of using it in a future
// release
//<<<---Line 26
I put in....

Code: Select all

ini_set('sendmail_from','[email protected]');<<<---Line 27
visionquest99
Registered User
Posts: 441
Joined: Wed Sep 29, 2004 3:20 am
Location: Toronto

Post by visionquest99 »

Are you still getting the error? What exactly did u change? I would have assumed that the 2 suggestions would have been incorporated into 2.0.21 :?
wweij
Registered User
Posts: 1
Joined: Sat Dec 23, 2006 3:18 am

Post by wweij »

Thank a lot for the information in this topic..

my problem: failed sending email line 234 during registration and pm

action taken: comment out (put // at the beginning of line 234 of emailer.php)

result: ok, everything work well now..
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Post by Lumpy Burgertushie »

that is like killling the doctor that keeps telling you that you have cancer.

you still have cancer , you just don't hear about it.


robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
potku
Registered User
Posts: 980
Joined: Wed Dec 22, 2004 10:26 pm
Location: Tampere, Finland
Contact:

Post by potku »

We keep getting these every now and then for both forum messages and private messages, yet everything goes through. But you can imagine the number of double and triple postings...

We are having this right, so what's the solution?

Thanks!
Potku.net

"Before I speak, I have something important to say."

- Groucho Marx
espicom
Registered User
Posts: 17905
Joined: Wed Dec 22, 2004 1:14 am
Location: Woodstock, IL

Post by espicom »

Ultimately, the cause of emailer.php errors is your host. They control the configuration of PHP, which controls whether or not PHP's mail() function works, which is how non-SMTP mail is delivered in PHPBB.

This makes the solution to find a better host, or get your existing host to fix the problem, or for them to provide you with a work-around, such as providing you with an SMTP server to use.
Jeff
Fixing 1016/1030/1034 Errors | (obsolete link) | MySQL 4.1/5.x Client Error | phpBBv2 Logo in ACP
Support requests via PM are ignored!
"To be fully alive is to feel that everything is possible." - Eric Hoffer
benjwalker
Registered User
Posts: 2
Joined: Mon Apr 17, 2006 4:34 pm
Contact:

Post by benjwalker »

I'm afraid you're wrong, Jeff.

I have a professional host and mail() most definitely works in other scripts on the hosting... but still that pesky error appears!
User avatar
M.O.B.
Registered User
Posts: 944
Joined: Tue Jan 04, 2005 1:07 am
Location: San Diego CA USA
Contact:

Post by M.O.B. »

I will try this.. I wish there was a way to really fix this. I have a professinal host service.. and they can't help me with this.
Image
alex_zmn
Registered User
Posts: 28
Joined: Sat Jan 27, 2007 10:00 pm

Post by alex_zmn »

DJ Andre wrote: I will try this.. I wish there was a way to really fix this. I have a professinal host service.. and they can't help me with this.


If they do not have their own SMTP service and they do not allow email though the webhost you can ask them to get fsockopen so that you can use the support of other free SMTP providers like yahoo.com.au or gmail.com if you have an account in any of these two.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Post by Lumpy Burgertushie »

yahoo will not allow you to relay through their servers for email, neither will anyone else.

you can't use gmail smtp for phpbb at all, it requires a type of connection that phpbb does not use.

robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
alex_zmn
Registered User
Posts: 28
Joined: Sat Jan 27, 2007 10:00 pm

Post by alex_zmn »

Lumpy Burgertushie wrote: yahoo will not allow you to relay through their servers for email, neither will anyone else.

you can't use gmail smtp for phpbb at all, it requires a type of connection that phpbb does not use.

robert


But 110mb gave the assurity that I can use yahoo.com.au for free after I get my fsocket opened. So, are they not correct. And secondly can we not use yahoo for the mail function. 110mb told that yahoo.com.au allows the rest does not provide free SMTP.
:oops:
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Post by Lumpy Burgertushie »

the au version might allow this, the us version does not as far as I know.

try it and see.

my advice is to get a better host.

better yet, get a paid host.

when a good hosting account and a domain name cost less than US$50 a year, you should not have to put up with all the crap from the free hosts.

robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
ssashen
Registered User
Posts: 12
Joined: Tue Feb 06, 2007 1:17 am

Post by ssashen »

I'm getting this same email when CERTAIN USERS merely CLICK on "New Topic" or "Reply"

Totally stumped.

Clues?
Prince_Cedric
Registered User
Posts: 36
Joined: Wed Jun 26, 2002 12:28 pm
Location: Pilipinas
Contact:

Re: Failed sending email ::PHP:: - Line 234 - Update?

Post by Prince_Cedric »

Anything new on this?
dwatrous
Registered User
Posts: 1
Joined: Wed Jul 04, 2007 4:27 am

Re: Failed sending email ::PHP:: - Line 234 - Update?

Post by dwatrous »

Hello,

For me the problem was fixed by adding a fifth parameter to the mail function (additional_parameters). Details here: http://us2.php.net/manual/en/function.mail.php.

My new function looks like this

Code: Select all

$result = mail($to, $this->subject, preg_replace("#(?<!\r)\n#s", "\n", $this->msg), $this->extra_headers,"-f [email protected]");
I hope this helps someone else.

DW
Locked

Return to “2.0.x Support Forum”