Re: Attaching files to SMPT Mail
| From: | Justin Patrin | Date: | Sat, 26 Mar 2005 06:46:49 +0000 |
| Subject: | Re: Attaching files to SMPT Mail | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18352@lists.php.net to get a copy of this message | ||
On Fri, 25 Mar 2005 14:38:50 -0800, Ken Linder <kc7rad@radstream.com> wrote:
> 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.
>
Well, I don't see anything on the web about this B2 format. My guess
is it's a proprietary format which their system uses. And as they say
they will convert mime to their format.
If you haven't already, get PEAR's Mail_mime package. You can make an
e-mail with only text or only html or both and attach files easily.
Then you can use PEAR's Mail package to send it. It's very simple.
> 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
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Justin Patrin