Documentation
¶
Overview ¶
Package emailer provides shared foundation stones for email providers
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlerFunc ¶ added in v0.0.4
func HandlerFunc(sender Sender) http.HandlerFunc
HandlerFunc is opinionated/reusable HTTP handler for brevo provider
Types ¶
type Email ¶
type Email struct { From string `json:"from"` To []string `json:"to"` BCC []string `json:"bcc"` CC []string `json:"cc"` Subject string `json:"subject"` HTMLContent string `json:"htmlContent"` TextContent string `json:"textContent"` }
Email is generic email structure for all providers
func (Email) ValidationMsg ¶
ValidationMsg returns empty if all validations passed, else it will return failed validation message
Directories
¶
Path | Synopsis |
---|---|
Package brevo makes it easy to send emails via brevo provider.
|
Package brevo makes it easy to send emails via brevo provider. |
cmd
|
|
emailer
command
|
|
Package emailtest makes testing easy for our tests.
|
Package emailtest makes testing easy for our tests. |
Package resend makes it easy to send emails via resend provider.
|
Package resend makes it easy to send emails via resend provider. |
Click to show internal directories.
Click to hide internal directories.