Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFileConfPath ¶
GetFileConfPath get file configuration path
Types ¶
type EmailFormat ¶ added in v0.2.0
type EmailFormat string
const ( HTMLEmail EmailFormat = "HTML" TEXTEmail EmailFormat = "TEXT" )
type SMTPSender ¶
type SMTPSender struct {
// contains filtered or unexported fields
}
SMTPSender type
func NewSMTPSender ¶
func NewSMTPSender(h *handler.Handler) (*SMTPSender, error)
NewSMTPSender new SMTPSender
func (*SMTPSender) SendEmail ¶
func (s *SMTPSender) SendEmail(toEmail string, subject string, body string) error
SendEmail send email using SMTP
func (*SMTPSender) SendEmails ¶ added in v0.2.0
func (s *SMTPSender) SendEmails(toEmails []string, hFromEmail string, hToEmail string, hCcEmail string, hBccEmail string, subject string, body string, format EmailFormat) error
SendEmails send emails with specific format/type
Click to show internal directories.
Click to hide internal directories.