OK, tested and confirmed.
If I change them to \n, all works fine. But if \r\n. Then depends on pop mail server and your mail client. Some works fine, some not. For example,
1) I am using outlook express to receive these test html emails. From one hosting server, it was fine. From another, it was broken.
2) on hotmail, all fine. But on gmail, then the html emails broken.
Now, my final questions are
1) Do I need to change all my email headers from \r\n to \n? no way to be portable to both?
2) If I change all my headers from \r\n to \n, I will have troubles if the site will be host on windows platform, right? If I am staying on Unix, such as unix and sendmail, i will still be fine, right?
3) It seems that if I am on unix, I should use \n. But I was on unix and sendmail before, why I am fine? So sendmail somehow takes care of this, did qmail have a way to take care of this issue too? Instead of I need to dig out to change all the pages with this.
4) Could someone give me a regular expression script to mass search files in the unix folder
/home/www
and repalce all the codes \r\n with \n
?
except in the mail headers codes, I cannot remember in any other places that I used \r\n?
5) or to be on the safe side, could anyone write me a regular expression for freebsd unix system
to mass search files in the unix folder
/home/www
and search all the strings start with $headers, and has \r\n in it, replace the \r\n with \n.
Thanks a lot. I can try regular expression myself, but I am not a regular expression expert and I am afraid that if I miss something, I may mess up the files to a degree that I cannot fix.
Of course, if anyone can help me with the regular expression, I will test it myself first and back up the whole folders too before I apply them.
Thanks!