Its primary purpose is to facilitate seamless e-mailing via Outlook Mail. In this Script, the user only needs to enter the recipient of the mail, the subject of the mail, and the Content of the Mail itself. The rest is handled by the script. It uses NodeJS with the puppeteer module to facilitate automated browser usage which first accesses www.outlook.live.com, then proceeds to log in to outlook mail using the credentials provided to it beforehand in a separate file. Once logged in, the script tells the browser to create a new mail, and then enters the details of the mail that it took as input earlier. Once all the data has been inputted, the browser sends the mail and shows a pop up at the bottom left, letting us know that the mail has been sent.
# install dependencies
npm install or npm i puppeteer
# Credentials Setup
--Email
--Password
--Sentemail
--filepath
--message
--subject
--Number of mails to read
# run
command run in bash:
sh cmd.sh
command run in cmd:
cmd.bat