Re: Attaching files to SMPT Mail

From: Date: Fri, 25 Mar 2005 22:38:50 +0000
Subject: Re: Attaching files to SMPT Mail
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-18347@lists.php.net to get a copy of this message
Thanks Justin, At first, I though to my self, how can I be so stupid? Then, after researching it a bit more and doing a little debugging with one of the e-mail system developers, I realized my confusion was justified. This is from Rick Muething (ham- KN6KB), one of the developers for the winlink2000 e-mail and message system (www.winlink.org)::: =========== Winlink and AirMail handle attachments using a B2 encapsulation protocol (not MIME) over the air because of efficiency (this is about 20-25% more efficient). The message is received by Winlink. HTML is converted to plain text. (again for size). Attachments are normally received in MIME format and then extracted, virus checked, and B2 Encapsulated for transmission. =========== Also, this... =========== OK I have the captured mime file. It uses some unusual (probably still legally acceptable) mail formats like Multipart/related . The receiver fails to decode it completely which is why the attachment is missing. =========== So... I should be able to send a MIME e-mail to the winlink system, it will translate it to B2 encapsulation, and send it on to the client. What I am trying to do is use PHP/PEAR to process requests for weather and emergency information and respond by generating a very lightweight web page or sending an e-mail. The e-mail part works fine, unless it is going to a requestor that might be using WinLink... Unfortunately, these are the target users for the e-mail portion of the system. I am not a Super-Duper-Email-Programmer so I don't know where to start experimenting. Any help would be appreciated. My project page is at www.radstream.com/radview/ It is a bit out of date but I hope to freshen it up later today. Ken ham-KC7RAD ----- Original Message ----- From: "Justin Patrin" <papercrane@gmail.com> To: "Ken Linder" <kc7rad@radstream.com> Cc: <pear-general@lists.php.net> Sent: Wednesday, March 23, 2005 10:07 AM Subject: Re: [PEAR] Attaching files to SMPT Mail > On Tue, 22 Mar 2005 23:44:02 -0800, Ken Linder <kc7rad@radstream.com> wrote: > > Quick question, > > I have the SMTP and MIME mail functionality working OK. I attach an image > > to the MIME message and send it out OK. OE and Eudora receive it fine. > > BUT, the e-mail client I have to write for does not understand MIME. How do > > I attach something to a simple SMTP e-mail? > > > > Attachments to e-mails, by definition, change the message to a > multi-part MIME message. You can't attach a file without using MIME > unless you use a URL, which isn't really attached. I suggest adding > MIME handling to the e-mail program you're writing. PEAR's Mail_mime > can parse mime message as well as create them. :-) > > -- > Justin Patrin

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