mailKit

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailAccount

type MailAccount struct {
	FromAddress string `json:"fromAddress"` // 发送者邮箱地址
	Password    string `json:"password"`    // 发送者邮箱密码
	SmtpHost    string `json:"smtpHost"`    // smtp服务器地址
	SmtpPort    string `json:"smtpPort"`    // smtp服务器端口
}

func (*MailAccount) SendMail

func (m *MailAccount) SendMail(toAddress string, subject string, body string) error

SendMail 发送邮件 *

  • @param toAddress 接收者邮箱地址
  • @param subject 邮件主题
  • @param body 邮件内容
  • @return 返回错误信息

Jump to

Keyboard shortcuts

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