Page 1 of 1

How to avoid Special characters (!) in the email

Posted: Wed Mar 17, 2010 12:02 am
by musammil123
Hello ,

I have written the php script to send a email with some contents. I am able to send the email with contents. But in some places the i am getting extra space and ! bet ween the words or characters. could you please suggest me how to solve this issue.


Thanks

Mohamed

Re: How to avoid Special characters (!) in the email

Posted: Wed Mar 17, 2010 1:40 am
by Christopher
It sounds like you might have Ctrl characters in your string. Look at the docs for preg_replace() to find examples of cleaning strings.