smtp

package
v0.0.0-...-1a99fe9 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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