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 From string RecipientList string }
SMTPservice uses the net/smtp package to send emails to a recipient list
func (*SMTPservice) IsConnected ¶
func (s *SMTPservice) IsConnected() bool
IsConnected returns whether or not the connection is connected
func (*SMTPservice) PushEvent ¶
func (s *SMTPservice) PushEvent(e base.Event) error
PushEvent sends an event to supplied recipient list via SMTP
func (*SMTPservice) Send ¶
func (s *SMTPservice) Send(subject, msg 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(cfg *config.CommunicationsConfig)
Setup takes in a SMTP configuration and sets SMTP server details and recipient list
Click to show internal directories.
Click to hide internal directories.