linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Scott Taylor" <scott@dctchambers.com>
To: linux-admin@vger.kernel.org
Subject: Re: attachment using sendmail
Date: Tue, 25 Jan 2005 07:30:06 -0800 (PST)	[thread overview]
Message-ID: <1389.192.168.99.70.1106667006.squirrel@192.168.99.70> (raw)
In-Reply-To: <200501251201.15303.fluca1978@infinito.it>


Luca Ferrari said:
> Hi,
> I use the sendmail command to send automatic e-mail in my control
> programs, but I'd like to know if there's a non interactive way to send an
> attachment, like a small text file. I didn't find a way in the man, so
> anyone has already done it?

Hi Luca,

There are many ways to attach files to email, MIME is probably your best bet.

A simple command line way would be to use the less supported uuencode, man
files for that.  Some mail clients may not support it though, I know there
is a plugin for Squirrel Mail though, and Eudora and Pine support it.

For MIME style attachments, I use a perl script with MIME::Lite.  Works
very well and very easy to code.  You can find it at
http://search.cpan.org (when it is working).

Good luck.

--
Scott

  reply	other threads:[~2005-01-25 15:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-25 11:01 attachment using sendmail Luca Ferrari
2005-01-25 15:30 ` Scott Taylor [this message]
2005-01-25 15:36 ` Miguel González Castaños

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1389.192.168.99.70.1106667006.squirrel@192.168.99.70 \
    --to=scott@dctchambers.com \
    --cc=linux-admin@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).