将电子邮件发送到php的 和其他转义的转换

I'm trying to process emails piped to php. The resulting email (parsed into a variable) in php has a bunch of marks that do not seem to resolve back into new lines, etc., when php simply re-pipes it over with a mail(). Ideally, it should be readable when re-piped from the other end - is there a way to simply convert all these 's 's and other escape's?

Did you use nl2br() ? It converts and to <br>.