Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: cool34000 on December 17, 2006, 12:36:36 AM

Title: [FIXED] How to attach file(s) to mails in console ?
Post by: cool34000 on December 17, 2006, 12:36:36 AM
Hi !

I'm looking for a simple way to send a mail with an attached file via the console...

I have to send a mail with text and files attached to it... So here were I'm stuck :
Code: [Select]
cat myfile.txt | mail admin -s "your subject"This is working but can't find a switch to attach my files !!!

I typed 'man mail' but it seems that this function is unavailable :(

Is there another command-line tool to send mail as easy as 'mail' ?


Thanks in advance !
Title: [FIXED] How to attach file(s) to mails in console ?
Post by: mmccarn on December 17, 2006, 06:10:43 AM
mail doesn't allow you to create MIME attachments.

mutt should let you do what you want and seems to be installed on my SME 7 servers.  For information, see http://www.mutt.org/doc/manual/manual-6.html#ss6.1
Title: [FIXED] How to attach file(s) to mails in console ?
Post by: cool34000 on December 17, 2006, 11:05:17 AM
Many thanks mmcarn, this is working as I expected !!!