Documentation ¶
Index ¶
- type Email
- func (e *Email) Send() error
- func (e *Email) SendWithTLS() error
- func (e *Email) SetAddress(address string) *Email
- func (e *Email) SetFilePath(filePath []string) *Email
- func (e *Email) SetFrom(from string) *Email
- func (e *Email) SetHost(host string) *Email
- func (e *Email) SetHtml(html string) *Email
- func (e *Email) SetPassword(password string) *Email
- func (e *Email) SetText(text string) *Email
- func (e *Email) SetTitle(title string) *Email
- func (e *Email) SetTo(to []string) *Email
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Email ¶
type Email struct { From string //Send email To []string //Accept mailbox Cc []string //Set cc Bcc []string //Set Bcc Title string //Email title Text string //Email Text Html string //Email Html Password string //Email password Address string //Send email address Host string //Send email host FilePath []string //Email attachment path Err error //Email error }
Email Email parameter structure
func (*Email) SendWithTLS ¶ added in v1.4.3
SendWithTLS sends an email over tls with an optional TLS config.
func (*Email) SetFilePath ¶
SetFilePath Set Email attachment path
func (*Email) SetPassword ¶
SetPassword Set Password
Click to show internal directories.
Click to hide internal directories.