----- Original Message ----- 
From: "Angus Comber" <[EMAIL PROTECTED]>
To: "Astlinux Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 22, 2006 7:10 AM
Subject: [Astlinux-users] How to use ssmtp to send an attachment


> Hello
>
> I can send a standard email using ssmtp.  But how can I attach a file.
I
> just want to email the Master.csv file on a regular basis.  What would
be
> the easiest way to do this?

Well, creating the RFC-822 message is a job for the UA (mail client) not
an MTA like ssmtp. For MIME messages containing attachments doing it
manually requires a fair amount of work, especially if the attachment is
binary. Astlinux doesn't have mmencode installed, but Busybox'
"uuencode -m" is a possible replacement (just cut off first and last line
of the file sent to stdout). The MIME headers may be handcrafted, basing
your code on a sample MIME message created by a "real" mail client and
consulting the documents from http://www.ietf.org/rfc/rfc2045.txt to
http://www.ietf.org/rfc/rfc2049.txt to clarify doubts...

There is also an old command-line utility called "Metamail" that would do
most of the work for you, but it's not included in Astlinux.

Cheers --

Enzo

_______________________________________________
Astlinux-users mailing list
[email protected]
http://lists.kriscompanies.com/mailman/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]

Reply via email to