smtputil

package
v0.58.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const GmailHost = "gmail.com"

GmailHost is the Google mail smtp hostname.

Variables

View Source
var (
	ErrEmailAddressEmpty             = errors.New("empty email address")
	ErrEmailAddressInvalidTooManyAts = errors.New("invalid email address. Too many ats")
)

Functions

func EmailAddrToReverse added in v0.41.0

func EmailAddrToReverse(e string) (string, error)

EmailAddrToSwapped converts an email address to "reverse" format for sorting like: "com.example.www@@info"

func EmailAddrToSwapped added in v0.41.0

func EmailAddrToSwapped(e string) (string, error)

EmailAddrToSwapped converts an email address to "swapped" format for sorting like: "www.example.com@@info"

func EmailUserHostToReverse added in v0.41.0

func EmailUserHostToReverse(user, host string) string

func EmailUserHostToSwapped added in v0.41.0

func EmailUserHostToSwapped(user, host string) string

func GmailAddressPlusTime

func GmailAddressPlusTime(smtpUser string) (string, error)

GmailUserPlusTime creates a Gmail SMTP address appending a time in "DT14" time format.

func ParseEmailAddress added in v0.41.0

func ParseEmailAddress(e string) (string, string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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