annop Posted June 18, 2008 Share Posted June 18, 2008 I have a pipe script in my site which is used to save the incoming mail to a particular address by mail forwarding. The problem is-- when the headers are splitted the message body looks like this :- mail from Gmail =========== ------=_Part_32303_1392883.1213689567031 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Testing Email. ------=_Part_32303_1392883.1213689567031 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Testing Email.<br> ------=_Part_32303_1392883.1213689567031-- if the mail is from yahoo the format is different. Can anyone please give me a solution to extract only the message from this. ie i want to remove the parts like--(------=_Part_32303_1392883.1213689567031 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline) Please help..... Thanks in advance Link to comment https://forums.phpfreaks.com/topic/110704-please-helpformat-piped-email/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.