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: 0

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