Skip to content

repavn/go_sender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Desctiption

This is a service for send text messages by HTTP queries (to messengers email, telegram and etc.) from another executed program (for example - site backend engines, other services).

Set your authorization settings in your host via environment variables (i use gmail account):

    export FROM_MAIL="<your-gmail-account-email>@gmail.com"
    export MAIL_PASS="<your-gmail-account-password>"
    export SMTP_HOST="smtp.gmail.com"
    export SMTP_PORT="587"
    export SEND_BOT_TOKEN="<your-telegram-bot-token>"

Development runtime in Docker: build image, run container

Install docker to your host os.

    docker build -t sender --build-arg SEND_BOT_TOKEN --build-arg SMTP_HOST --build-arg SMTP_PORT --build-arg FROM_MAIL --build-arg MAIL_PASS --build-arg GROUP_CHAT_ID .
    docker run -p 9999:9999 -d -t sender

Production instructions

TODO...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published