Hello I tried to send mail from PHP in html format. But an ! mark appears in mail body in Inbox. I tried to print body text on page before sending mail and it does not show ! mark . I replaced ! mark from mail body before passing it to mail() function but then also it adds ! mark in mail body. Can you please tell me why this is happening?
Thanks
ive heard of this happening if the lines you send to mail() are too long. using wordwrap may help.
mail($to, $subject, wordwrap($message), $headers);
see if that works for you. it will default to wrapping text every 75 characters with a \n.
Thanks a lot drew010. It worked for now. I am testing it. Will let you know if find the same problem.
Originally posted by drew010 ive heard of this happening if the lines you send to mail() are too long. using wordwrap may help. mail($to, $subject, wordwrap($message), $headers); see if that works for you. it will default to wrapping text every 75 characters with a \n.
just out of curiousity, what os, server software, mail transfer agent and php version are you using?
php 4 with Apache on Linux. Do not have exact idea about mail server.