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) 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
Click to show internal directories.
Click to hide internal directories.