Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

A telegram bot which supports IMAP and SMTP protocol

License

Notifications You must be signed in to change notification settings

WAAutoMaton/telegram-mail-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

telegram-mail-bot

Setup

Compile:

git clone https://github.com/WAAutoMaton/telegram-mail-bot.git
cd telegram-mail-bot
go mod tidy
go build ./

Configure:

mkdir config
touch config/config.json

Edit the config.json, for example:

{
  "token": "<Your bot token> : string",
  "imapserver": "imap.example.com:993",
  "smtpserver": "smtp.example.com:589",
  "smtphost": "smtp.example.com",
  "username": "user@example.com",
  "password": "Your Mail's Password",
  "uid": "<Your telegram digital ID> : int"
}

(Optional) If you want to use proxy:

export http_proxy="Your proxy"

Finally

./telegram-mail-bot

Usage

Use /help to get more information.

About

A telegram bot which supports IMAP and SMTP protocol

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages