smtpservice

package
v0.0.0-...-6e61e22 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SMTPservice

type SMTPservice struct {
	base.Base
	Host            string
	Port            string
	AccountName     string
	AccountPassword string
	RecipientList   string
}

SMTPservice uses the net/smtp package to send emails to a recipient list

func (*SMTPservice) Connect

func (s *SMTPservice) Connect() error

Connect connects to service

func (*SMTPservice) PushEvent

func (s *SMTPservice) PushEvent(base.Event) error

PushEvent sends an event to supplied recipient list via SMTP

func (*SMTPservice) Send

func (s *SMTPservice) Send(subject, alert string) error

Send sends an email template to the recipient list via your SMTP host when an internal event is triggered by GoCryptoTrader

func (*SMTPservice) Setup

func (s *SMTPservice) Setup(config config.CommunicationsConfig)

Setup takes in a SMTP configuration and sets SMTP server details and recipient list

Jump to

Keyboard shortcuts

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