Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GomailSender ¶
type GomailSender struct { GomailSenderConfig // contains filtered or unexported fields }
func New ¶
func New() *GomailSender
func (*GomailSender) Config ¶
func (g *GomailSender) Config() interface{}
func (*GomailSender) Init ¶
func (g *GomailSender) Init(app app_context.Context, configPath ...string) error
func (*GomailSender) Send ¶
func (g *GomailSender) Send(ctx op_context.Context, to string, subject string, contents ...email_sender.EmailContent) error
type GomailSenderConfig ¶
type GomailSenderConfig struct { HOST string `validate:"required" vmessage:"Gomail client host must be specified"` PORT uint16 `validate:"required" vmessage:"Gomail client port must be specified"` USER string `validate:"required" vmessage:"Gomail client user must be specified"` PASSWORD string `validate:"required" vmessage:"Gomail client password must be specified"` FROM_ADDRESS string FROM_NAME string }
Click to show internal directories.
Click to hide internal directories.