Comments on: 4 Ways to Send Email Attachment from Linux Command Line https://www.tecmint.com/send-email-attachment-from-linux-commandline/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Thu, 13 Jul 2023 15:59:22 +0000 hourly 1 By: Nils https://www.tecmint.com/send-email-attachment-from-linux-commandline/comment-page-2/#comment-1832729 Thu, 23 Jun 2022 13:33:08 +0000 http://www.tecmint.com/?p=23918#comment-1832729 From the mutt man page:

When attaching single or multiple files, separating filenames and recipient addresses with "--" is mandatory, e.g:

$ mutt -a image.jpg  --  addr1  or mutt -a img.jpg *.png -- addr1 addr2.

The -a option must be placed at the end of command line options.

So one has to place a double dash between attachment and recipient. Took me a bit to figure that out, maybe it helps someone else here

]]>
By: Plop https://www.tecmint.com/send-email-attachment-from-linux-commandline/comment-page-2/#comment-1399803 Thu, 10 Dec 2020 16:25:43 +0000 http://www.tecmint.com/?p=23918#comment-1399803 In reply to RTFM.

mailx -s "Subject Here" -a backup.zip user@example.com

  • -a is for headers
  • -A is for files
]]>
By: jenrry soto dextre https://www.tecmint.com/send-email-attachment-from-linux-commandline/comment-page-2/#comment-1398080 Fri, 04 Dec 2020 13:51:35 +0000 http://www.tecmint.com/?p=23918#comment-1398080 Hello, I think it missing to configure a client as an account on google to permit send emails.

]]>
By: RTFM https://www.tecmint.com/send-email-attachment-from-linux-commandline/comment-page-2/#comment-1349778 Mon, 03 Aug 2020 13:41:55 +0000 http://www.tecmint.com/?p=23918#comment-1349778 It’s a lowercase '-a' to attach a file, not upper.

]]>
By: hobbit https://www.tecmint.com/send-email-attachment-from-linux-commandline/comment-page-2/#comment-1303462 Sat, 07 Dec 2019 10:32:28 +0000 http://www.tecmint.com/?p=23918#comment-1303462 when I tried to install the commands which you shared on this link, It states error.

Could you guide me on what really I need to do?

following are the commands and error message:-

~$ sudo apt-get install mailutils
sudo: error while loading shared libraries: libsudo_util.so.0: cannot open shared object file: No such file or directory
sudo: error while loading shared libraries: /usr/lib/sudo/libsudo_util.so.0: invalid ELF header

]]>