Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BodyType ¶ added in v0.36.0
type BodyType int
BodyType is used to specify the format of the body.
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
func (*Mail) BodyFormat ¶ added in v0.36.0
BodyFormat can be used to specify the format of the body. Default BodyType is HTML.
Click to show internal directories.
Click to hide internal directories.