how to create a MIME message with an inline attachment

From: Date: Fri, 12 Mar 2010 21:32:16 +0000
Subject: how to create a MIME message with an inline attachment
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-30402@lists.php.net to get a copy of this message
i *think* i know the answer to this, but i'll ask anyway so i don't go wandering off down the wrong path. i just go an android phone, and i'm testing creating messages with the Mail and Mail_mime packages and sending them to my phone via my carrier's MMS gateway. i can, from my regular e-mail account (this one), email with an attachment to my phone, and it shows up fine. however, when i use the PEAR classes to create a MIME message and send it to my phone, it appears to arrive but asks that i download the attachment, which it then fails to do. i took those two emails (the one that worked, and the one that didn't), ran them both thru mimedecode and the major difference seems to be that the one that worked had the attachment with a content disposition of "inline", while the one that failed had "attachment", so i'm *guessing* that's the critical difference. as i read it, i can't set the content disposition simply with the Mail_mime class, i need Mail_mimePart, correct? rday -- ======================================================================== Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://crashcourse.ca Twitter: http://twitter.com/rpjday ========================================================================

« previous php.pear.general (#30402) next »