submail

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

README

SUBMAIL

发送邮件使用 submail 的 mail/send 功能。

example

config := make(map[string]string)
config["appid"] = "aaa" // submail api id
config["appkey"] = "bbb" // submail api key
config["signType"] = "sha1"
submail := CreateSend(config)
submail.AddTo("someuser@abc.com", "") // 收件人地址
submail.SetSender("no-reply@officaial.com", "Official") // 发件人地址
submail.SetSubject("Email Verification Code") // 邮件标题(200个字符以内)
submail.SetText("Testing Mail") // 纯文本邮件正文(5000个字符以内)
resp := submail.Send()

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSend

func CreateSend(config map[string]string) *mailsend

func CreateSignature

func CreateSignature(request map[string]string, config map[string]string) string

func Get

func Get(requesturl string) string

func GetTimestamp

func GetTimestamp() string

func MultipartPost

func MultipartPost(requesturl string, postdata map[string]string) string

func Post

func Post(requesturl string, postdata map[string]string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL