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 » Tue Dec 19, 2006 12:11 am

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','noreply@yourservernamehere.com');<<<---Line 27

visionquest99
Registered User
Posts: 440
Joined: Wed Sep 29, 2004 3:20 am
Location: Toronto

Post by visionquest99 » Wed Dec 20, 2006 1:50 am

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 » Mon Dec 25, 2006 9:22 am

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: 63196
Joined: Mon May 02, 2005 3:11 am
Contact:

Post by Lumpy Burgertushie » Mon Dec 25, 2006 5:09 pm

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
I am available for custom work on a donation basis. Please send me a PM with your needs.
Premium phpBB 3.2 Styles by PlanetStyles.net

New phpbb 3.0 support site

User avatar
potku
Registered User
Posts: 705
Joined: Wed Dec 22, 2004 10:26 pm
Location: Tampere, Finland
Contact:

Post by potku » Fri Jan 19, 2007 5:45 am

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

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

Post by espicom » Fri Jan 19, 2007 3:44 pm

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 » Thu Jan 25, 2007 4:37 pm

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: 885
Joined: Tue Jan 04, 2005 1:07 am
Location: San Diego CA USA
Contact:

Post by M.O.B. » Wed Jan 31, 2007 5:01 pm

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 » Wed Jan 31, 2007 5:31 pm

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: 63196
Joined: Mon May 02, 2005 3:11 am
Contact:

Post by Lumpy Burgertushie » Wed Jan 31, 2007 7:32 pm

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
I am available for custom work on a donation basis. Please send me a PM with your needs.
Premium phpBB 3.2 Styles by PlanetStyles.net

New phpbb 3.0 support site

alex_zmn
Registered User
Posts: 28
Joined: Sat Jan 27, 2007 10:00 pm

Post by alex_zmn » Wed Jan 31, 2007 7:45 pm

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: 63196
Joined: Mon May 02, 2005 3:11 am
Contact:

Post by Lumpy Burgertushie » Wed Jan 31, 2007 8:18 pm

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
I am available for custom work on a donation basis. Please send me a PM with your needs.
Premium phpBB 3.2 Styles by PlanetStyles.net

New phpbb 3.0 support site

ssashen
Registered User
Posts: 12
Joined: Tue Feb 06, 2007 1:17 am

Post by ssashen » Wed Mar 07, 2007 9:44 pm

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 » Sat Jun 30, 2007 5:01 pm

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 » Tue Jul 24, 2007 5:31 am

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 forum@mydomain.com");
I hope this helps someone else.

DW

Locked

Return to “2.0.x Support Forum”

Who is online

Users browsing this forum: No registered users and 21 guests