sendemail

package module
v0.0.0-...-82b3493 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func New

func New(c Config) *App

func (*App) Main

func (a *App) Main(c *gin.Context)

type Config

type Config struct {
	Server ServerConfig
	Sender map[string]SmtpConfig
}

type Message

type Message struct {
	ToEmail         string `form:"toEmail"`
	FromEmailPrefix string `form:"fromEmailPrefix"`
	FromDomainId    string `form:"fromDomainId"`
	Subject         string `form:"subject"`
	Body            string `form:"body"`
}

type ServerConfig

type ServerConfig struct {
	Host   string
	Port   int
	Title  string
	DryRun bool
}

type SmtpConfig

type SmtpConfig struct {
	FromDomain string
	Host       string
	Port       int
	Username   string
	Password   string
	Bcc        []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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