linux poison RSS
linux poison Email

Sending email attachments from linux command line

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 nikesh@domain.com

Or Without subject:

$ echo | mutt -a [file] [mail@address.com]

Mutt website: http://www.mutt.org/.


0 comments:

Post a Comment

Related Posts with Thumbnails