Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MailSender ¶
type MailSender struct {
// contains filtered or unexported fields
}
MailSender represents an SMTP mail sender.
func NewMailSender ¶
func NewMailSender(smtpServer string, smtpPort int, sender, pwd, nickname string) *MailSender
NewMailSender creates a new MailSender instance with the provided SMTP server details.
func (*MailSender) SendMail ¶
func (m *MailSender) SendMail(recipient, subject, body string) error
SendMail sends an email using the configured SMTP server.
Click to show internal directories.
Click to hide internal directories.