Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEmailer ¶
NewEmailer returns a new no-op Emailer.
Example ¶
package main
import (
"context"
"fmt"
"github.com/primandproper/platform/email"
"github.com/primandproper/platform/email/noop"
)
func main() {
emailer, err := noop.NewEmailer()
if err != nil {
panic(err)
}
err = emailer.SendEmail(context.Background(), &email.OutboundEmailMessage{
ToAddress: "user@example.com",
ToName: "User",
FromAddress: "noreply@example.com",
FromName: "App",
Subject: "Welcome!",
HTMLContent: "<h1>Hello</h1>",
})
fmt.Println(err)
}
Output: <nil>
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.