Jump to content

Please help....format piped email


annop

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.