Many times we required to send mail attachments from command line, when administering a server remotely. The procedure is simple using mutt that is available in all Unix flavors and Windows Microsoft.
$ mutt -s “Logs” -a http_access.log email@example.com
Or Without subject:
$ echo | mutt -a [file] [firstname.lastname@example.org]
Mutt website: http://www.mutt.org/.