mSend
- February 23, 2019
- by
Getting Start
Step - 1 Installationsudo curl -L "https://github.com/harry41/mSend/raw/v0.2.6/msend" -o /usr/bin/msend
sudo chmod +x /usr/bin/msend
msend -h
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
Please Enter Valid Credentials
Enter Your Gmail ID : your_email@gmail.com
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
- Go to your Google Account
- On the left navigation panel, click Security.
- 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 your_email@domain.com -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- Go To
~/.mSend
Directory. - Open
msend.conf
file in your text editor. - Update variables value according to your details.
- Done.
# Replace below variables and uncomment according to your credentials and details.
# EMAIL_SENDER_LIST=("your_smtp_auth_token" "your_smtp_auth_token2")
# SENDER_NAME="Harry"
# REPLY_EMAIL_ADDRESS="Harry
- You can add multiple smtp credentials in
EMAIL_SENDER_LIST
variable. REPLY_EMAIL_ADDRESS
is very important recipient will reply on this email id.
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
0 comments:
Post a Comment