mailclient

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailClient

type MailClient struct {
	ServerName string
	SmtpAddr   string
	UserName   string
	Password   string
}

func NewMailClient

func NewMailClient(serverName, smtpAddr, username, password string) *MailClient

Create new mail client. If your account use 2-fa authentication, you need to create password in for this device. ex for google mail server: https://stackoverflow.com/questions/60701936/error-invalid-login-application-specific-password-required/60718806#60718806

func (*MailClient) SendMail

func (m *MailClient) SendMail(subject, message, to string, cc, bcc []string) (err error)

Jump to

Keyboard shortcuts

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