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
-
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 :
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 !
-
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
-
Many thanks mmcarn, this is working as I expected !!!