Skip to content

Shashikanth101/Robo-Mailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Robo-Mailer

Send Email with NodeJS using Yahoo Mail as the smtp service

Installation

Make sure you have node.js and npm already installed and clone this repository. Enter the below command to install dependencies

npm install

Setup

  • create a yahoo mail account
  • navigate to Account info > Account Security
  • scroll down and click 'Generate app password' and select 'Other' from the dropdown menu
  • give it a name and click on generate
  • use this as the password in your nodejs app instead of original password

Usage

  • create a new .env file in the root of the project directory
  • Enter all your credentials as shown below
SMTP_HOST=smtp.mail.yahoo.com
SMTP_PORT=465
SMTP_SERVICE=yahoo
EMAIL_ID=your_yahoo_email_id
EMAIL_PASSWORD=generated_password
RECEIVER_EMAIL_ID=recepient_mail_id

To run the application, enter the below command in your terminal

npm start

Some usefull resources that helped me along the way

Note:

Cannot send both text and HTML together

About

Sending email with Nodemailer using Yahoo Mail

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published