Portada

Este es el blog del buscador temático sobre el open source Via Alternativa, basado en la API de Google.

En este espacio encontrarás noticias de varias fuentes RSS relacionadas con el mundo del código abierto y comunidades gnu-linux.

Todo el contenido de las anotaciones es responsabilidad de aquellos que las escriben y sus respectivas webs. Si administras una web enlazada por RSS y no estás de acuerdo con la redistribución de tus contenidos contacta con nosotros.

¡A divertirse!

Vivimos en una sociedad profundamente dependiente de la ciencia y la tecnología y en la que nadie sabe nada de estos temas. Ello constituye una fórmula segura para el desastre.

— Carl Sagan

Logo Via Alternativa

Entradas recientes

Sending EmailsSend them from Linux Terminal?

Send them from Linux Terminal

Does your job require sending a lot of emails on a daily basis? And you often wonder if or how you can send email messages from the Linux terminal.

This article explains about 6 different ways of sending emails using the Linux terminal. Let’s go through them.

sendmail Command

Use the sendmail command to send emails to one or more people at once. Sendmail is one of the most popular SMTP servers in Linux. You can easily send emails directly from the command line using the sendmail command. To route the information, the sendmail command makes use of the network configured on your system. 

Let’s execute the following commands to create a file having email content.

cat /tmp/email.txt

Subject: Terminal Email Send

Email Content line 1

Email Content line 2

The Subject will be the line used as a subject for the email.

Now, to send the email, use the following syntax.

sendmail user@example.com  < /tmp/email.txt

mail Command

Just like Sendmail, you can use the mail command for sending emails from the terminal. Use the below-given command for this purpose.

mail -s "Test Subject" user@example.com < /dev/null

Here -s defines the email subject. 

To send an attachment included within the email, type the below-mentioned line.

mail -a /opt/backup.sql -s "Backup File" user@example.com < /dev/null

Here -a is used to include attachments. If yours is a Debian-based distro, use -A because it uses the mailutils package.

If you have to send emails to multiple recipients at a time, add comma-separated emails in the following manner.

mail -s "Test Email"  user@example.com,user2@example.com < /dev/null

mailx Command

The GNU Mailutils is a combination of multiple utility packages. All Mailutils can operate on mailboxes starting from UNIX maildrops, maildir, and all the way up to remote mailboxes. These mailboxes are accessed with IMAP4, POP3, and SMTP. Mailutils is made for developers, regular Linux users, and system administrators. 

For the installation purpose, use the following command.

sudo apt install mailutils

The mailutils package is mainly made of 2 commands, mail and mailx, and they both function in a similar manner.

  1. 7 Important Linux Commands for Every Linux User Deja un comentario
  2. In PuTTY, Scripted Passwords are Exposed Passwords Comentarios desactivados en In PuTTY, Scripted Passwords are Exposed Passwords
  3. How To Pick a Linux Distribution Comentarios desactivados en How To Pick a Linux Distribution
  4. What’s New in Debian 11 “Bullseye”? Comentarios desactivados en What’s New in Debian 11 “Bullseye”?
  5. Privacy-focused Linux Distributions to Secure Your Online Presence in 2021 Comentarios desactivados en Privacy-focused Linux Distributions to Secure Your Online Presence in 2021
  6. A Guide to 5 Fair Selections of Open Source Ticketing Tools for Linux Comentarios desactivados en A Guide to 5 Fair Selections of Open Source Ticketing Tools for Linux
  7. In Search of Linux Laptops? Check these 6 Places to Get Your Laptop in 2021 Comentarios desactivados en In Search of Linux Laptops? Check these 6 Places to Get Your Laptop in 2021
  8. Q&A trip to Linux’s Black Hole – /dev/null Comentarios desactivados en Q&A trip to Linux’s Black Hole – /dev/null
  9. Download These 7 Cool Apps on Your Linux Machine to Make Life Easier Comentarios desactivados en Download These 7 Cool Apps on Your Linux Machine to Make Life Easier
  10. Improve The CrowdSec Multi-Server Installation With HTTPS Between Agents Comentarios desactivados en Improve The CrowdSec Multi-Server Installation With HTTPS Between Agents
  11. Experimenting with Python implementation of Host Identity Protocol Comentarios desactivados en Experimenting with Python implementation of Host Identity Protocol
  12. Gaming Time? Top 3 VR Games Available on Linux Comentarios desactivados en Gaming Time? Top 3 VR Games Available on Linux
  13. How to Check Battery Status Using Linux Command Line Comentarios desactivados en How to Check Battery Status Using Linux Command Line
  14. How to Decrease Video Sizes Using FFmpeg in Linux Comentarios desactivados en How to Decrease Video Sizes Using FFmpeg in Linux
  15. How to Replace a Variable in a File Using SED Comentarios desactivados en How to Replace a Variable in a File Using SED
  16. How to Create a Shell Script in Linux Comentarios desactivados en How to Create a Shell Script in Linux
  17. SQLite Extraction of Oracle Tables Tools, Methods and Pitfalls Comentarios desactivados en SQLite Extraction of Oracle Tables Tools, Methods and Pitfalls
  18. Vulnerability Detection and Patching: A Survey Of The Enterprise Environment Comentarios desactivados en Vulnerability Detection and Patching: A Survey Of The Enterprise Environment
  19. Live Patching Requires Reproducible Builds – and Containers Are the Answer Comentarios desactivados en Live Patching Requires Reproducible Builds – and Containers Are the Answer