email

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2019 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 Contacts

type Contacts struct {
	Contacts     []contact.Contact
	RemindParams remind.Params
}

Contacts holds every contacts related data necessary for the email content.

type SMTPClient

type SMTPClient struct {
	Host     string
	Port     int
	Username string
	Password string
	Language string
}

SMTPClient represents a SMTP client with its credentials

func (SMTPClient) Send

func (ss SMTPClient) Send(emailContacts Contacts, recipients []string) error

Send sends an email to recipients about the related contact incoming birthday.

type Sender

type Sender interface {
	Send(emailContacts Contacts, recipients []string) error
}

Sender holds methods necessary for sending reminder emails.

Jump to

Keyboard shortcuts

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