email_service

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email struct {
	From    string `json:"from"`
	To      string `json:"to"`
	Subject string `json:"subject"`
	Body    string `json:"body"`
}

type EmailService

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

func NewEmailService

func NewEmailService(cfg *EmailServiceConfig) (*EmailService, error)

func (EmailService) Send

func (e EmailService) Send(email *Email) error

type EmailServiceConfig

type EmailServiceConfig struct {
	Auth   string
	Pass   string
	Smtp   string
	Port   int
	Sender string
}

func NewEmailServiceConfig

func NewEmailServiceConfig(auth, pass, smtp string, port int, send string) *EmailServiceConfig

Jump to

Keyboard shortcuts

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