If you’ve ever wanted to send an email with an attachment from the Linux command line, ‘sendemail’ is the tool you want
apt-get install sendemail
Once installed, the most common usage is:
sendemail -t $to_address -f $from_address -s $smtp_server -u $subject -m $message -a $attachment
That’s it. Email sent!
Leave A Comment