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

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

Security Operations Manager-West Coast

@ The Walt Disney Company | USA - CA - 2500 Broadway Street

Vulnerability Analyst - Remote (WFH)

@ Cognitive Medical Systems | Phoenix, AZ, US | Oak Ridge, TN, US | Austin, TX, US | Oregon, US | Austin, TX, US

Senior Mainframe Security Administrator

@ Danske Bank | Copenhagen V, Denmark