Linux - Send Email with Attachment from CLI

Install necessary packages sudo apt-get install mutt postfix -y Send the Email echo "This is the message body" | \ mutt -a "/path/to/file.to.attach" \ -s "subject of message" \ -- recipient@domain.com References Stack Overflow - How do I send a file as an email attachment using Linux command…

Read this article