January 10, 2011

How to avoid original msg while reply using PHP?

Question by VinothPHP

Dear all,
how to avoid original message while reply for incoming mail using php, Am download the mail from mail server, the message content ll be combine with original messages, so its confused, and some of html entities are placed with that content,because of that original messages,
So how to avoid that original messages using php, anyone can help me…

Thanks in Advance….

Regards,
Vinoth S

Answer by Starx

I am not sure, if this is your answer but

$message = preg_replace ('/<[^>]*>/', '', $message);

OR

$message = strip_tags($message);

Will remove all the html entities from your message? Try it

Author: Nabin Nepal (Starx)

Hello, I am Nabin Nepal and you can call me Starx. This is my blog where write about my life and my involvements. I am a Software Developer, A Cyclist and a Realist. I hope you will find my blog interesting. Follow me on Google+

...

Please fill the form - I will response as fast as I can!