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-23, 3:57 pm |
| 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
| |
| Ken Linder 2005-03-25, 8:56 pm |
| 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:
image[color=darkred]
How do[color=darkred]
>
> 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
|
|
|
|
|