noop

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEmailer

func NewEmailer() (email.Emailer, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL