For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > March 2005 > Re: [PEAR] Attaching files to SMPT Mail









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] Attaching files to SMPT Mail
Justin Patrin

2005-03-26, 3:57 am

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
>
> wrote:
> image
> How do
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



--
Justin Patrin
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com