April 28, 2024, 10:08 p.m. | Florence Okoli

DEV Community dev.to

Table of Contents



  1. Introduction

  2. Prerequisite

  3. Generate Google App password

  4. Launch your EC2 Instance

  5. Configuration of SSMTP

  6. Write and send your mail

  7. Conclusion





1. Introduction


Imagine being able to compose, attach files and send emails directly from your CLI using a few concise Linux commands. Well, the Linux terminal offers a streamlined and efficient alternative for sending emails using mailutils and the Simple Mail Transfer Protocol (SMTP).


What is SMTP?

SMTP stands for Simple Mail Transfer Protocol. It is a protocol …

app cli cloudcomputing compose configuration devops ec2 emails files google google app instance introduction launch linux linux commands mail mails password send smtp terminal

Sr. Product Manager

@ MixMode | Remote, US

Information Security Engineers

@ D. E. Shaw Research | New York City

Technology Security Analyst

@ Halton Region | Oakville, Ontario, Canada

Senior Cyber Security Analyst

@ Valley Water | San Jose, CA

Test Systems Design & Cybersecurity Engineer

@ Boeing | USA - El Segundo, CA

Cybersecurity Support Engineer (FortiClient) - Malaysia

@ Fortinet | Wilayah Persekutuan Kuala Lumpur, Malaysia