email

package
v0.0.0-...-dbdf344 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: BSD-3-Clause Imports: 7 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatAsRFC2822

func FormatAsRFC2822(fromDisplayName string, from string, to []string, subject, body, markup, threadingReference string, messageID string) (*bytes.Buffer, error)

FormatAsRFC2822 returns a *bytes.Buffer that contains the email message formatted in RFC 2822 format.

func GetViewActionMarkup

func GetViewActionMarkup(link, name, description string) (string, error)

GetViewActionMarkup returns a string that contains the required markup.

func ParseRFC2822Message

func ParseRFC2822Message(body []byte) (string, []string, string, string, error)

ParseRFC2822Message returns the email address in the From:, To: and Subject: lines, and also returns the body of the message, which is presumed to be an HTML formatted email.

Types

This section is empty.

Jump to

Keyboard shortcuts

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