Giter Site home page Giter Site logo

wuchunfu / email-center Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dollarkillerx/email-center

0.0 1.0 0.0 24 KB

email center 接入多个email邮箱 防止发送邮件被封 tk可注册免费域名 mail.ru可申请企业邮箱

License: MIT License

Go 61.34% HTML 38.66%

email-center's Introduction

email-center

email center 接入多个email邮箱 防止发送邮件被封 tk可注册免费域名 mail.ru可申请企业邮箱

如何使用

初始使用填写配置文件

email: # email 集合
  - user: "[email protected]"
    password: "password"
    host: "smtp.mail.ru"
    port: 465
  - user: "[email protected]"
    password: "password"
    host: "smtp.mail.ru"
    port: 465

Api

post: http://127.0.0.1/email/seed

参数:

email string  // 发送目标 (单个邮件: [email protected])(多个邮件: [email protected],[email protected],[email protected])
head  string  // 发送头
body  string  // 发送体
key   string  // 秘钥 每次都要携带 

200 正确返回:

map[string]interface{}{
    "code":200,
    "msg":"发送成功",
}

400 参数错误:

map[string]interface{}{
    "code":400,
    "msg":"参数错误",
}

401 权限错误:

map[string]interface{}{
    "code":401,
    "msg":"权限错误",
}

500 发送失败:

map[string]interface{}{
    "code":500,
    "msg":"发送失败",
    "data":err.Error(),
}

email-center's People

Contributors

dollarkillerx avatar

Watchers

 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.