Git Product home page Git Product logo

emsend's Introduction

介绍

利用163 smtp服务器,通过http api进行发送邮件,通过配置文件启动http服务;

  1. 将其嵌入到容器中作为容器本地服务进行邮件发送

通过配置文件运行

使用以下配置文件

example: cfg.toml

user = "邮件账户[email protected]"
token = "邮箱smtp生成的授权码"
ipaddr = "127.0.0.1"
port = 1234

运行 postmp run --config /vdb/posmtp/cfg.toml

通过命令行启动

cargo run -- args --user [email protected] --token xxxxxxxxx 可选增加 --ipaddr 0.0.0.0 --port 1234

post请求结构体

{
subject:主题
body:内容
reciever:接收者
sender: 发送者,一般为smtp服务器所使用邮箱
}
Json>
{"subject":"容器状态检查","body":"状态健康","reciever":"[email protected]", "sender": "[email protected]"}

emsend's People

Contributors

hitom888 avatar loyux avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.