Skip to content

A telegram bot which sends emails directly to you via telegram

License

Notifications You must be signed in to change notification settings

iAkashPattnaik/MailServerBot

Repository files navigation

🚀MailSenderBot📩

⚠️ Warning

This is no longer relevant for gmail as Google shut down "less secure apps" from May 30, 2022. But this will still work for other SMTP providing servers.

Setup

First, we will setup the Gmail Account.

Step 1 • Goto This Link and click on the Allow less secure apps button.

Step 2 • Open Gmail > Settings > Fowarding and POP / IMAP

Step 3 • Click on Enable POP for all mail (even mail that's already been downloaded) option.

Step 3 • Click on Enable IMAP option.

Step 4 • Click on Save button.

Step 5 • Goto This Link and click on the Allow button.

Step 6 (IMP) • While deploying the bot, you will get a Critical security alert mail from google. Open the mail > Check Activity. Click on Yes, it was me button and redeploy your app.

🚀Deploy

For Deploying the application, there are these following options available...

Local server
Qovery
Heroku

Local Server

To start the application locally, you can use the following command...

• Set The Environmental Variables

Set them either via editing the source or in your OS Env.

$ npm i
$ npm build
$ npm start

• Star the repository if you like it

Qovery

To deploy the application on Qovery, you can do the following...

• Fork this repository
• Create a new application on Qovery
• Add the forked repository as a remote
• Set branch to main
• Set The Environmental Variables
• Deploy The Application
• Star the repository if you like it

Heroku

To deploy the application on Heroku, you can do the following...

• Fork this repository
• Create a new application on Heroku
• Connect your github account to Heroku
• Add the forked repository as a remote
• Set branch to main
• Set The Environmental Variables
• Deploy The Application
• Star the repository if you like it

Environmental Variables

The following environmental variables are required to deploy the application...

botToken botToken issued by @BotFather
userId user_id of the user
login The email of the user (Gmail only)
password The password of the user

Credits

Anony The bot idea was his.
Akash The bot was built by him.

About

A telegram bot which sends emails directly to you via telegram

Resources

License

Stars

Watchers

Forks

Releases

No releases published