Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Email ¶
type Email struct {
// contains filtered or unexported fields
}
func NewWithAuth ¶
func NewWithAuth(server string, tlsConfig *tls.Config, auth smtp.Auth, from, to string, subject string) (*Email, error)
NewWithAuth constructs a server with optional TLS and Auth
func (*Email) Html ¶
Html sets the HTML content of the email. You CANNOT call Html twice - it will panic.
func (*Email) InlineFile ¶
InlineFile takes the provided file and inlines it into the email. You MUST call Html(..) first, or you will get a panic.
Click to show internal directories.
Click to hide internal directories.