jemail

package module
v0.0.0-...-8182c46 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Email_QQ int8 = 1 + iota
	Email_163
	Email_126
	Email_Outlook
	Email_Qywx
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailServer

type EmailServer struct {
	Server string
	Port   string

	PopServer string
	PopPort   string
}

func (*EmailServer) Host

func (e *EmailServer) Host() string

type EmailUtils

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

func New

func New() *EmailUtils

func (*EmailUtils) BatchSend

func (e *EmailUtils) BatchSend() error

func (*EmailUtils) Send

func (e *EmailUtils) Send(sub string, txt []byte) error

func (*EmailUtils) SendWithSTL

func (e *EmailUtils) SendWithSTL(sub string, txt []byte) error

func (*EmailUtils) WithReceiver

func (s *EmailUtils) WithReceiver(receiver string) *EmailUtils

func (*EmailUtils) WithSender

func (s *EmailUtils) WithSender(from string, account string, password string) *EmailUtils

func (*EmailUtils) WithServer

func (s *EmailUtils) WithServer(t int8) *EmailUtils

func (*EmailUtils) WithServerConfig

func (s *EmailUtils) WithServerConfig(server string, port string, popServer string, popPort string) *EmailUtils

Jump to

Keyboard shortcuts

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