Documentation ¶
Index ¶
Constants ¶
View Source
const CharSet = "UTF-8"
CharSet is the default email encoding.
Variables ¶
View Source
var ( // ErrEmptyRecipientList is returned when an empty recipient list is passed to the Sender.Send method. ErrEmptyRecipientList = errors.New("empty recipient list") // ErrEmptySender is returned when an empty sender email address is passed to the Sender.Send method. ErrEmptySender = errors.New("empty sender") // ErrInvalidSender is returned when an invalid email address is passed to the Sender.Send method. ErrInvalidSender = errors.New("invalid sender") // ErrInvalidRecipient is returned when an invalid email is passed in the list of recipients to the Sender.Send method. ErrInvalidRecipient = errors.New("invalid recipient") // ErrInvalidData is returned when an invalid data is passed to the Sender.Send method. ErrInvalidData = errors.New("invalid data") )
Functions ¶
func ValidateEmail ¶
ValidateEmail validates the given email. It returns false if the validation fails.
Types ¶
Click to show internal directories.
Click to hide internal directories.