Re: attachment using sendmail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux