Re: Grep the plan/text part from mail

From: Date: Thu, 24 Aug 2000 08:48:47 +0000
Subject: Re: Grep the plan/text part from mail
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-13331@lists.php.net to get a copy of this message
I don't know if this will help, but you can try it: http://www.phpbuilder.com/columns/kartic20000807.php3 is a tutorial on sending mime mail in php. I'm assuming it will have some good information on using PHP with mime in general. I'm gonna give it a cursory read now and see if I come up with anything. I'm building a tiny e mail app myself, but I'm not sure if I want to do mime. Cheers, Bradley ----- Original Message ----- From: Php User <php@gurubase.com> To: <php-general@lists.php.net> Sent: Thursday, August 24, 2000 6:07 PM Subject: [PHP] Grep the plan/text part from mail > Dear all, > > I would like to grep the plain/text part of a MIME mail to display. How can I > do it? > > I try the following but can\'t succeed .... > > $o = imap_fetchstructure($mailbox, $messageno ); > if ($o->subtype==\"PLAIN\") { > $charset = $o->parameters[0]->value ; > $msgbody = imap_body($mailbox, $messageno ) ; > } elseif ( isset($o->parts )) { > $count = count($o->parts) ; > for ( $i=0 ; $i<$count ; $i++ ) { > if ($o->parts[$i]->subtype==\"PLAIN\") > $msgbody = imap_fetchbody($mailbox, $messageno, $i+1 ); > } > } > > Can you help ? > > Thanks and regards, > Boris > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#13331) next »