gomail

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Host     string
	Port     int
	Username string
	Password string
}

func (*Client) I

func (c *Client) I() notify.IClient

func (*Client) Name

func (c *Client) Name() string

func (*Client) Send

func (c *Client) Send(message notify.IMessage) (result notify.IResult)

type Message

type Message struct {
	Form            string
	To              []string
	Cc              []string
	Bcc             []string
	Subject         string
	BodyContentType string
	Body            string
	Attach          []string
}

func (*Message) Html

func (m *Message) Html(html string) notify.IMessage

func (*Message) SetBcc

func (m *Message) SetBcc(bcc ...string) notify.IMessage

func (*Message) SetCc

func (m *Message) SetCc(cc ...string) notify.IMessage

func (*Message) SetForm

func (m *Message) SetForm(form string) notify.IMessage

func (*Message) SetSubject

func (m *Message) SetSubject(subject string) notify.IMessage

func (*Message) SetTo

func (m *Message) SetTo(tos ...string) notify.IMessage

func (*Message) Text

func (m *Message) Text(text string) notify.IMessage

func (*Message) TransFormToRequestParams

func (m *Message) TransFormToRequestParams() any

Jump to

Keyboard shortcuts

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