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

Re: adding an attatchment using the mail command?



On Wed, 07 Jan 2004 16:01:27 +0000, Mark C wrote:

> I run a nightly cronjob to back up certain system files, for the life of
> me I cannot add them as an attatchment, when I mail to files to myself,
> they always got put into the message body.  Reading the man pages gives
> no indication of how to do this, and I'm not sure if you can with the
> 'mail' command (I suppose sendmail would be the other alternative).

Not really, I'm afraid. RFC822 doesn't have it on attachments and mime
(yet). So your mail -s "My backup" me@myserver < backupfile necessarily
ends that file up in the message body. And 'mail' is just a frontend to
the Mail Transfer Agent; e.g. sendmail.

In order to help you further, you better specify more details. Some ftp /
nc / nfs might be useful here, depending on the circumstances.



Reply to: