Skip to content

team4yf/fpm-go-plugin-email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fpm-go-plugin-email

Install

$ go get -u github.com/team4yf/fpm-go-plugin-email

import _ "github.com/team4yf/fpm-go-plugin-email/plugin"

Config

smtp:
    host: smtp.qq.com
    port: 587            # 端口
    username: [email protected]
    password: xxx # 这里不要写密码,密码在环境变量中保存 FPM_EMAIL_PASSWORD
    name: no_reply
    address: [email protected]
    reply: [email protected]
    keepalive: 30         # 连接保持时长

Usage

fpmApp.Execute("email.send", &fpm.BizParam{
    "to":      "[email protected]",
    "subject": "test",
    "body":    "ok",
})

Releases

No releases published

Packages

No packages published