email

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsumeNonBlock

func ConsumeNonBlock(c EmailConsumer)

Types

type EmailConsumer

type EmailConsumer func(f *ForwardableEmailMessage) error

type EmailMessage

type EmailMessage struct {
	From string
	To   string
	Raw  io.ReadCloser
}

type ForwardableEmailMessage

type ForwardableEmailMessage struct {
	From    string
	To      string
	Headers http.Header
	Raw     io.ReadCloser
	RawSize int
	// contains filtered or unexported fields
}

func NewForwardableEmailMessage

func NewForwardableEmailMessage(msg js.Value) *ForwardableEmailMessage

func (*ForwardableEmailMessage) Forward

func (f *ForwardableEmailMessage) Forward(rcptTo string, headers *http.Header) error

func (*ForwardableEmailMessage) Reply

func (f *ForwardableEmailMessage) Reply(emailMsg *EmailMessage) error

func (*ForwardableEmailMessage) SetReject

func (f *ForwardableEmailMessage) SetReject(reason string)

Jump to

Keyboard shortcuts

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