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 firstname.lastname@example.org
Or Without subject:
$ echo | mutt -a [file] [email@example.com]
Mutt website: http://www.mutt.org/.