mail

package
v0.0.0-...-a74fbde Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBody

func GetBody(b Body) []byte

GetBody 本文を取得する

func GetForgetpasswordBody

func GetForgetpasswordBody(f ForgetpasswordTemplate) []byte

GetForgetpasswordBody パスワード忘れた本文を取得する

func GetForgetpasswordURL

func GetForgetpasswordURL(email string, keyword string) (string, error)

GetForgetpasswordURL パスワード忘れたURLを取得する

func Send

func Send(email string, body []byte) error

Send メールを送信する

Types

type Body

type Body struct {
	From    string
	To      string
	Subject string
	Message string
}

Body 本文

type ForgetpasswordTemplate

type ForgetpasswordTemplate struct {
	URL   string
	Host  string
	Email string
}

ForgetpasswordTemplate パスワード忘れた本文

Jump to

Keyboard shortcuts

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