public mail plugin: rn instead of break

15 years 6 days ago #95507 by flat eric
public mail plugin: rn instead of break was created by flat eric
I have a problem with the public mail plugin. All breaks are deleted and replaced with "rn". Is it possible to change this?

I use CB 1.2 stable
Joomla 1.5

Thanks for any help!

Please Log in to join the conversation.

14 years 5 months ago #116060 by alibroon
Replied by alibroon on topic Re:public mail plugin: rn instead of break
I just noticed the same problem. Did you ever get a fix for this?

Please Log in to join the conversation.

14 years 2 weeks ago #129670 by Jaffa12
Replied by Jaffa12 on topic Re:public mail plugin: rn instead of break
I too have the same issue with breaks being replaced with 'rn'. Any chance someone can help us?

Please Log in to join the conversation.

13 years 11 months ago #132854 by KoFShinobi
Replied by KoFShinobi on topic Re:public mail plugin: rn instead of break
Same issue. Anyone know why yet?

delimiters FTW!

Please Log in to join the conversation.

13 years 11 months ago #132855 by KoFShinobi
Replied by KoFShinobi on topic Re:public mail plugin: rn instead of break
Got it. Find this code in the main php page.


[code:1]
$mailtext = stripslashes($mailtext);
$mailtext = wordwrap($mailtext, 70); // Just to be safe that SMTP-send works
$subject = stripslashes($subject);[/code:1]

put this in between the second and third lines:

[code:1]$mailtext = str_replace('\r\n', "\r\n", $mailtext); // Replace Windows breaks (rn)[/code:1]

All fixed.

delimiters FTW!
The following user(s) said Thank You: MacJoomla

Please Log in to join the conversation.

13 years 11 months ago #132857 by Jaffa12
Replied by Jaffa12 on topic Re:public mail plugin: rn instead of break
Thanks for your help but unfortunately that hasn't worked for me. Any other ideas?

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.239 seconds

Facebook Twitter LinkedIn