Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Send ¶
func Send(Server string, Port int, Username string, Password string, From string, To []string, Cc []string, Bcc []string, Subject string, Body []byte, Content ContentType) error
Send is a simple function that will send emails the parameter list is large but its a one stop solution to sending an email.
Types ¶
type ContentType ¶
type ContentType string
ContentType defines the type of body the email will have.
const ( HTML ContentType = "text/html" Plain ContentType = "text/plain" )
maybe there are more email content types out there.. idk..
func (ContentType) String ¶
func (t ContentType) String() string
Click to show internal directories.
Click to hide internal directories.