contract

package
v3.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Name  string
	Email string
}

type Attachment

type Attachment struct {
	Filename    string
	ContentType string
	Content     []byte
}

type Mailer

type Mailer interface {
	Send(runtimeInstance runtimecontract.Runtime, message Message) error
}

type Message

type Message struct {
	From        Address
	To          []Address
	Cc          []Address
	Bcc         []Address
	ReplyTo     Address
	Subject     string
	Text        string
	Html        string
	Headers     map[string]string
	Attachments []Attachment
}

type Transport

type Transport interface {
	Send(runtimeInstance runtimecontract.Runtime, message Message) error
}

Jump to

Keyboard shortcuts

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