Skip to content

harry41/mSend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mSend

Version : v0.3.5
Release Date : 25-Jan-21
mSend is tiny utility to send unlimited email.

Getting Start

Install and configure mSend - SMTP Client

Step - 1 Installation
sudo curl -L "https://github.com/HarryTheDevOpsGuy/msend/raw/master/$(uname -p)/msend" -o /usr/bin/msend
sudo chmod +x /usr/bin/msend
msend -h

Alt text

Step - 2 : Generate SMTP Auth Token

mSend uses your gmail smtp login credentials to sent email. so you need to generate your smtp auth token by executing below command.

./msend --get-smtp-auth

Output :

  Please Enter Valid Credentials  
  Enter Your Gmail ID : [email protected]
  Enter Your Gmail PASSWORD : secret@password
  Enter Email Sender Name : Harry

  Your SMTP AUTH TOKEN has been Saved in  ~/.mSend/msend.conf
Step - 3 : Enable Less Secure Application
  1. Go to your Google Account
  2. On the left navigation panel, click Security.
  3. On the bottom of the page, in the Less secure app access panel, click Turn on access.
Step - 4 : Send test email.

You can create your own html templates. send your email by executing below commmand. Here we have created a html email template for you ~/.mSend/email_template.html

msend -t [email protected] -s "mSend Has been Installed" -f ~/.mSend/email_template.html -a /var/log/nginx/error.log

Troubleshooting


How To Configure SMTP credentials in mSend ?

Follow below step to configure SMTP

  1. Go To ~/.mSend Directory.
  2. Open msend.conf file in your text editor.
  3. Update variables value according to your details.
  4. Done.

Here is sample msend.conf

# Replace below variables and uncomment according to your credentials and details.

# To Send email with AWS SES.
# EMAIL_MODE='SES'
# EMAIL_FROM='mSend <[email protected]>'
# AWS_DEFAULT_REGION='ap-south-1'
# AWS_ACCESS_KEY_ID='yourAcess_key'
# AWS_SECRET_ACCESS_KEY='YourAWS_secret_key'

## To Send email with Gmail
# EMAIL_SENDER_LIST=("your_smtp_auth_token" "your_smtp_auth_token2")
# SENDER_NAME="Harry"

# REPLY_EMAIL_ADDRESS="Harry <[email protected]>
  1. You can add multiple smtp credentials in EMAIL_SENDER_LIST variable.
  2. REPLY_EMAIL_ADDRESS is very important recipient will reply on this email id.
  3. if EMAIL_MODE='SES' You must install aws cli on your host.

How To update mSend ?

No Need to worry about updatation. it will update automatically every 30 days. also you can update anytime if it is required.

Run below command to Update

msend --update

About us

Contributors

  • Shankar Deo
  • Kapil Yadav
  • Chandan Bisht
  • Satya

Thank you So much for your contribution.

About

mSend is tiny utility to send unlimited email.

Resources

Stars

Watchers

Forks

Packages

No packages published