Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Host string Port string ServerName string Auth smtp.Auth TLSConfig *tls.Config }
Config ...
type EmailService ¶
EmailService ...
func InitSMTP ¶
func InitSMTP(user, pass, host, port string) *EmailService
InitSMTP configures the email variables
func (*EmailService) UseTemplate ¶
func (s *EmailService) UseTemplate(e *shopy.Email, data interface{}, name string) error
UseTemplate adds the template to the email and renders it to the Body field
Click to show internal directories.
Click to hide internal directories.