ryy705 Posted October 22, 2008 Share Posted October 22, 2008 Hello, Has anyone here built an Imap client before? How would you extract the plain text following example? Message Structure from imap_fetchstructure() 11 0 1 ALTERNATIVE 0 0 0 0 1 Array ( [0] => stdClass Object ( [attribute] => boundary [value] => ----=_Part_2731_21274440.1224713273226 ) ) Array ( [0] => stdClass Object ( [type] => 0 [encoding] => 0 [ifsubtype] => 1 [subtype] => PLAIN [ifdescription] => 0 [ifid] => 0 [lines] => 33 [bytes] => 2813 [ifdisposition] => 0 [ifdparameters] => 0 [ifparameters] => 1 [parameters] => Array ( [0] => stdClass Object ( [attribute] => charset [value] => UTF-8 ) ) ) [1] => stdClass Object ( [type] => 0 [encoding] => 0 [ifsubtype] => 1 [subtype] => HTML [ifdescription] => 0 [ifid] => 0 [lines] => 84 [bytes] => 3563 [ifdisposition] => 0 [ifdparameters] => 0 [ifparameters] => 1 [parameters] => Array ( [0] => stdClass Object ( [attribute] => charset [value] => UTF-8 ) ) ) ) There should be a way to figure out what part number to use in imap_fetchbody() by looking at the header. But I don't see any mention of how to do it in the php manual or anywhere else. Thank you in advance Link to comment https://forums.phpfreaks.com/topic/129658-imap-client-help/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.