Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mail ¶
type Mail struct {
// contains filtered or unexported fields
}
Mail struct holds necessary data to send emails.
func (*Mail) AddReceivers ¶
AddReceivers takes email addresses and adds them to the internal address list. The Send method will send a given message to all those addresses.
func (*Mail) AuthenticateSMTP ¶
AuthenticateSMTP authenticates you to send emails via smtp. Example values: "", "test@gmail.com", "password123", "smtp.gmail.com" For more information about smtp authentication, see here:
-> https://pkg.go.dev/net/smtp#PlainAuth
Click to show internal directories.
Click to hide internal directories.