iemail

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host     string
	Port     int
	Username string
	Password string

	Product Product
}

type EmailSend

type EmailSend struct {
	// contains filtered or unexported fields
}

func New

func New(c *Config) *EmailSend

func (*EmailSend) GenBody

func (e *EmailSend) GenBody(typ string, content hermes.Email) (string, error)

func (*EmailSend) SendHTML

func (e *EmailSend) SendHTML(header Header, content hermes.Email) error

func (*EmailSend) SendPlainText

func (e *EmailSend) SendPlainText(header Header, content hermes.Email) error
type Header struct {
	From    mail.Address
	To      string
	Subject string
}

type Product

type Product struct {
	Name        string
	Link        string
	Copyright   string
	TroubleText string
}

Jump to

Keyboard shortcuts

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