Recent Topics

1 Sep 09, 2007 19:54    

My b2evolution Version: Not Entered

I just installed 1.10.2 on my Windows-based hosting server. When a new user creates an account it shows this error:

Sorry, the email with the link to validate and activate your password could not be sent.
Possible reason: the PHP mail() function may have been disabled on the server.

I turned on debug and it turns out I get a warning:

Warning: mail() [function.mail]: SMTP server response: 451 See http://pobox.com/~djb/docs/smtplf.html. in C:\hshome\jlwatt\samanthawatt.com\inc\_misc\_misc.funcs.php on line 2352

The link it references says there are Bare LFs in SMTP message. When I research that here I find nothing. When I research it other places it says put \r\n in the emails for line feeds instead of \n.

I did this but cannot get it to work still.

Email seems to work for the rest of my PHP applications on that same server.

Anyone have any ideas?

2 Sep 09, 2007 20:14

Did you try in ../blogs/inc/_misc/_misc.funcs.php on line 2280:

$NL = "\n";


Change it to:

$NL = "\r\n";

Good luck

3 Sep 09, 2007 22:12

Thanks for the response!

I tried that before my post and changed the replace command so it searched for \n and \r and replaced with $NL.

No luck!

4 Sep 09, 2007 22:29

It dawned on me after the last post that if I am searching for \n and replacing it with \r\n I could end up with \r\r\n.

So I changed the search at about 2343 to:

$message = str_replace( array( "\n", "\r" ), $NL, $message );
$message = str_replace( "\r\r\n", $NL, $message );
$message = str_replace( "\r\n\n", $NL, $message );

and that seems to have done it!

I hope this will help someone else.

Jenny

5 Sep 09, 2007 23:04

Well done and thanks for reporting back to the forum.

Happy blogging


Form is loading...