1 (edited by fpouget 2005-09-14 03:24)

Topic: Email from punbb to outlook 2000 - l'éléphant aime les ç

Hi,

I'be just noticed than all email send from punbb are not well formated in outlook 2000 ... :
- the mail is one line only, is missing all the 'return to the line' -  no idea about teh exact word in english -

Do you know what's happenning, and where this can be solve ?

Tx

Re: Email from punbb to outlook 2000 - l'éléphant aime les ç

Hmm. I have no way of testing this (I don't have Outlook 2000).

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Email from punbb to outlook 2000 - l'éléphant aime les ç

Rickard wrote:

Hmm. I have no way of testing this (I don't have Outlook 2000).

me neither wink I used a friend to test

But many of my user yes ;(


The strange things is with Outlook 2000 you do a reply: all the text is well formated ... Tx $crosoft !

Re: Email from punbb to outlook 2000 - l'éléphant aime les ç

Allo !? wink

I'm surprised rthan nobody find out this issue before ...

Re: Email from punbb to outlook 2000 - l'éléphant aime les ç

Have them sign up here and see if they have the same issue (I have Outlook 2002)?

6

Re: Email from punbb to outlook 2000 - l'éléphant aime les ç

No problem with Outlook 2003, Becky, The Bat and others. Outlook 2000 was a tragic buggy old thing. I seem to remember an ancient bug report about Outlook 2000's rich edit feature stripping out CR_CR_LF combinations and replacing them with a space but I don't know if thats related.

Re: Email from punbb to outlook 2000 - l'éléphant aime les ç

Hi,

Strange it doesn't work me with outook 2003... Did i do something wrong ??

8

Re: Email from punbb to outlook 2000 - l'éléphant aime les ç

I just tested again emailing myself using form email and with a subscription email. Everything looks fine in Outlook 2003. The answer is you must be doing something wrong though I don't know what. My guess is it is more likely something to do with your hosts mail server. Did you try outlook with an email from this forum?

9 (edited by fpouget 2005-09-12 03:27)

Re: Email from punbb to outlook 2000 - l'éléphant aime les ç

Ok no problem with this forum : the mail i got with outlook 2003 is perfectly formated

I've to check on my file if did something wrong with the function punbbmail(), but so far I don't think I ve touch anything there ...

I will let you know

Re: Email from punbb to outlook 2000 - l'éléphant aime les ç

I just did a compare between the original email.php (just dowloaded) and the one online and there is no difference ....

Any idea where the pb could be coming from ?

Tx

Re: Email from punbb to outlook 2000 - l'éléphant aime les ç

What mail server are you using?

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Email from punbb to outlook 2000 - l'éléphant aime les ç

???? qmail ? Im not 100% sure ... I should ask to my host.

Re: Email from punbb to outlook 2000 - l'éléphant aime les ç

Qmail sure !

Re: Email from punbb to outlook 2000 - l'éléphant aime les ç

Very odd. I really can't say what the problem is. Most hosts use QMail and yours is the first I've heard of with this problem.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

15

Re: Email from punbb to outlook 2000 - l'éléphant aime les ç

I recollect a known problem with a combination of php+qmail+outlook. Apparently Outlook would strip out linefeeds apart from Outlook XP which would add extra linefeeds. I think the solution was that Outlook required \n rather than \r\n even though it was technically incorrect.

Or is it something to do with this
http://www.lifewithqmail.org/lwq.html#cr

Re: Email from punbb to outlook 2000 - l'éléphant aime les ç

Rickard, Paul,

Thanks for your assistance. I will try to remove the \r\n and replace the \n and will let you know asap. Any idea about the email could be affected in the others mailers and webmail ?

Re: Email from punbb to outlook 2000 - l'éléphant aime les ç

By the way where should i do the change ?
email.php

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

or
function.php

function pun_linebreaks($str)
{
    return str_replace("\r", "\n", str_replace("\r\n", "\n", $str));
}

18

Re: Email from punbb to outlook 2000 - l'éléphant aime les ç

I don't have a clue. I think you had better let Rickard comment on whether that could be the problem before you do anything.

Re: Email from punbb to outlook 2000 - l'éléphant aime les ç

I did and so far is succesfull for outlook 2003, outlook express and one webmail (squirreMail)

in email.php I change

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

by

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

I know is not optimized but I wait for the feedback of the master: Rickard wink

I will chek with other mailers soon to know if the formatting is good for all of them

Tx

20

Re: Email from punbb to outlook 2000 - l'éléphant aime les ç

You don't mean I actually solved it. Maybe all the time I've spent hanging around here has activated my geek gene.

Re: Email from punbb to outlook 2000 - l'éléphant aime les ç

Thanks again wink

This modifications give good results for
- Outlook 2003
- Lotus note 6.5
- Outlook express
- SquirreMail (webmail)
- Feriepost (webmail)

There is still a problem with subject and special characters - they are replaced by ? with outlook 2003 and lotus note 6.5 (i just modify the title of the topics) to know how does it works here ...
This last point is not a big issue compare to the first (CRLF) one's.

Re: Email from punbb to outlook 2000 - l'éléphant aime les ç

Any advice to help to optimize my code ?

Tx

Re: Email from punbb to outlook 2000 - l'éléphant aime les ç

Sorry for the bump, but I want to thanks to fpouget for this solution!
Thanks !