mail

package
v0.0.0-...-b952f1b Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailItem

type MailItem struct {
	From    string   `json:"from,omitempty"`
	To      []string `json:"to,omitempty"`
	Subject string   `json:"subject,omitempty"`
	Body    string   `json:"body,omitempty"`
	Id      uint64   `json:"id,omitempty"`
	// contains filtered or unexported fields
}

func NewMailItem

func NewMailItem(from string, to []string, subject, body string, sender MailSender) MailItem

func (MailItem) GetMailTime

func (m MailItem) GetMailTime() int64

type MailSender

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

func NewMailSender

func NewMailSender(host string, port int, username, password string) MailSender

type Store

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

func NewStore

func NewStore() *Store

func (*Store) SendMail

func (s *Store) SendMail(from string, to []string, subject, body string, sender MailSender) uint64

func (*Store) Start

func (s *Store) Start()

Jump to

Keyboard shortcuts

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