Coder Social home page Coder Social logo

sendcloud's Introduction

sendcloud

SendCloud 发送邮件 API 的封装,现已将 API 接口切换到了 v2 版本,如果想使用 v1 版本的 API,请 Checkout v1 Tag。

v2 版本新功能:

  • 1、模板管理(添加、删除、更新、获取)
  • 2、地址列表管理(添加、删除、更新、获取)
  • 3、地址列表成员管理(添加、删除、更新、获取)
  • 4、邮件发送(模板发送、地址列表发送、附件支持)

使用方法如下:

设置 API 信息:

UpdateApiInfo("api_user", "api_key")

发送邮件:

var to = make([]map[string]string, 1)
to[0] = map[string]string{"to":"[email protected]", "%url%": "http://www.baidu.com"}
var ok, err, result = SendTemplateMail("template name", "from mail", "from name", "replay to email address", "subject", to, nil)

返回数据说明:

ok     发送是否成功
err    错误信息
result 接口返回的 json 数据

sendcloud's People

Contributors

smartwalle avatar

Watchers

James Cloos 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.