Re: [PHP] Re: double lines

2006-04-13 Thread Martin ZvarĂ­k

Barry wrote:


clive wrote:


Does the html  add in \r.



Normally not.

But the mailing function might do.
Replace every \n with  and every \r with  with 
str_replace

And probably you see where the problem is

It's because of the operation system. Win32 and Linux works different. 
Linux adds extra line.


Martin [Zend Certified]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: double lines

2006-03-17 Thread Barry

clive wrote:


Does the html  add in \r.


Normally not.

But the mailing function might do.
Replace every \n with  and every \r with  with 
str_replace

And probably you see where the problem is

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: double lines

2006-03-17 Thread clive

Thanks

Ive tried it and waiting for feed back from the client on my pc it shows 
correctly ,Im using thunder bird on his computer he uses outlook, but 
Ive sent it to other people who have outlook and its fine on there PC.


Does the html  add in \r.

clive


Barry wrote:

clive wrote:

Hi

Im using the phpmailer class to send text emails (not html), it works 
100%.


So emails sent from a php script look correct in the mail client, 
however when I first load/show the message in a  and then 
send it to the same script which then sends the email, on some mail 
clients there are double line between paragraphs.


Its almost like the  is putting in a extra \n, how can I 
test for this or fix this problem.


Regards,

Clive

This might be because there are \r in it.
Search for them and replace them with "" so you wont have any probs.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: double lines

2006-03-17 Thread Barry

clive wrote:

Hi

Im using the phpmailer class to send text emails (not html), it works 100%.

So emails sent from a php script look correct in the mail client, 
however when I first load/show the message in a  and then send 
it to the same script which then sends the email, on some mail clients 
there are double line between paragraphs.


Its almost like the  is putting in a extra \n, how can I test 
for this or fix this problem.


Regards,

Clive

This might be because there are \r in it.
Search for them and replace them with "" so you wont have any probs.

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php