Sending Email from the Terminal with Mutt

In this tutorial, I'll show you the command to send an email with an attachment directly from the terminal. The body of the message to be sent is located in the "body.txt" file, while the attachment is a hypothetical photo named "allegato.jpeg". After this brief introduction, here is the command...

mutt -s "Email subject" -a allegato.jpeg -- user@gmail.com < body.txt

Scorri la pagina verso il basso...