email

package
v0.0.0-...-f25a4ef Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageData

type MessageData struct {
	Recipient   *string `json:"recipient"`
	Subject     *string `json:"subject"`
	ContentType *string `json:"contentType"`
	Body        []byte  `json:"body"`
}

type Sender

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

func NewSender

func NewSender(config SenderConfig) *Sender

func (*Sender) Send

func (o *Sender) Send(message MessageData)

type SenderConfig

type SenderConfig struct {
	Sender     *string `json:"sender"`
	SenderName *string `json:"senderName"`
	SmtpUser   *string `json:"smtpUser"`
	SmtpPass   *string `json:"smtpPass"`
	Host       *string `json:"host"`
	Port       *int    `json:"port"`
	Bcc        *string `json:"bcc"`
}

Jump to

Keyboard shortcuts

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