Documentation ¶
Index ¶
- type BodyType
- type Mail
- func (m *Mail) AddAuthentication(user string, pass string)
- func (m *Mail) AddHeader(name, value string)
- func (m *Mail) AddReceivers(addresses ...string)
- func (m *Mail) BodyFormat(format BodyType)
- func (m *Mail) InsecureSkipVerify(enable bool)
- func (m Mail) Send(ctx context.Context, subject, message string) error
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) AddAuthentication ¶ added in v0.42.0
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) BodyFormat ¶
BodyFormat can be used to specify the format of the body. Default BodyType is HTML.
func (*Mail) InsecureSkipVerify ¶ added in v0.42.0
Click to show internal directories.
Click to hide internal directories.