email

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 9 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 {
	// contains filtered or unexported fields
}

Client 邮件客户端

func NewClient

func NewClient(smtpServer, username, password string, useAuth bool) *Client

NewClient 创建邮件客户端

func (*Client) Send

func (c *Client) Send(to, subject, body string) error

Send 发送普通文本邮件

func (*Client) SendWithAttachment

func (c *Client) SendWithAttachment(to, subject, body string, files []string) error

SendWithAttachment 发送带附件的邮件

Jump to

Keyboard shortcuts

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