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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址