Documentation ¶
Index ¶
- Constants
- func InitiateModule(scope string) fx.Option
- type Config
- type Module
- func (m *Module) NewMessage() *gomail.Message
- func (m *Module) PrintDebugLogs()
- func (m *Module) Send(msg *gomail.Message) error
- func (m *Module) SendTestMail(to, subject, body string) error
- func (m *Module) SendTransactionalMail(from string, to string, subject string, body string) error
- func (m *Module) TestSMTPConnection() error
- type Params
Constants ¶
View Source
const ( DefaultHost = "0.0.0.0" DefaultPort = 25 DefaultUsername = "" DefaultAppPassword = "" DefaultTLS = false DefaultSubject = "From Gogetter Mail Module" DefaultBody = "This is an email from Gogetter Mail Module." DefaultFrom = "[email protected]" DefaultTo = "[email protected]" )
Variables ¶
This section is empty.
Functions ¶
func InitiateModule ¶
Types ¶
type Module ¶ added in v0.1.8
type Module struct {
// contains filtered or unexported fields
}
func (*Module) NewMessage ¶ added in v0.1.8
func (m *Module) NewMessage() *gomail.Message
func (*Module) PrintDebugLogs ¶ added in v0.1.8
func (m *Module) PrintDebugLogs()
func (*Module) SendTestMail ¶ added in v0.1.8
func (*Module) SendTransactionalMail ¶ added in v0.1.9
creates and sends email
func (*Module) TestSMTPConnection ¶ added in v0.1.8
Click to show internal directories.
Click to hide internal directories.