email

package
v0.0.0-...-70ca52a Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SmtpHandler

func SmtpHandler(c *smtpsrv.Context) error

Types

type EmailAddress

type EmailAddress struct {
	Name    string `json:"name,omitempty"`
	Address string `json:"address,omitempty"`
}

EmailAddress ...

type EmailAttachment

type EmailAttachment struct {
	Filename    string `json:"filename"`
	ContentType string `json:"content_type"`
	Data        string `json:"data"`
}

EmailAttachment ...

type EmailEmbeddedFile

type EmailEmbeddedFile struct {
	CID         string `json:"cid"`
	ContentType string `json:"content_type"`
	Data        string `json:"data"`
}

EmailEmbeddedFile ...

type EmailMessage

type EmailMessage struct {
	References []string `json:"references,omitempty"`
	SPFResult  string   `json:"spf,omitempty"`

	ID      string `json:"id,omitempty"`
	Date    string `json:"date,omitempty"`
	Subject string `json:"subject,omitempty"`

	ResentDate string `json:"resent_date,omitempty"`
	ResentID   string `json:"resent_id,omitempty"`

	Body struct {
		Text string `json:"text,omitempty"`
		HTML string `json:"html,omitempty"`
	} `json:"body"`

	Addresses struct {
		From      *EmailAddress   `json:"from"`
		To        *EmailAddress   `json:"to"`
		ReplyTo   []*EmailAddress `json:"reply_to,omitempty"`
		Cc        []*EmailAddress `json:"cc,omitempty"`
		Bcc       []*EmailAddress `json:"bcc,omitempty"`
		InReplyTo []string        `json:"in_reply_to,omitempty"`

		ResentFrom *EmailAddress   `json:"resent_from,omitempty"`
		ResentTo   []*EmailAddress `json:"resent_to,omitempty"`
		ResentCc   []*EmailAddress `json:"resent_cc,omitempty"`
		ResentBcc  []*EmailAddress `json:"resent_bcc,omitempty"`
	} `json:"addresses"`

	Attachments   []*EmailAttachment   `json:"attachments,omitempty"`
	EmbeddedFiles []*EmailEmbeddedFile `json:"embedded_files,omitempty"`
}

EmailMessage ...

Jump to

Keyboard shortcuts

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