mcmail

package module
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 4 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.

README

mcmail | github.com/abbeymart/mcmail

  • Send Email / Messages Package
  • See test file(s) for test cases / scenarios

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailConfigType

type EmailConfigType struct {
	Username           string `json:"username"`
	Password           string `json:"password"`
	Port               int    `json:"port"`
	ServerUrl          string `json:"serverUrl"`
	MsgFrom            string `json:"msgFrom"`
	ApiKey             string `json:"apiKey"`
	Tls                string `json:"tls"`
	InsecureSkipVerify bool   `json:"insecureSkipVerify"`
}

func (EmailConfigType) SendEmail

func (mailer EmailConfigType) SendEmail(recipients []string, message string, subject string, emailType string) mcresponse.ResponseMessage

SendEmail sends text and HTML messages, attachment etc.

type EmailFunc

type EmailFunc func(props EmailPropsType) interface{}

type EmailPropsType

type EmailPropsType map[string]interface{}

type EmailSubjectFunc

type EmailSubjectFunc func(props EmailPropsType) string

type EmailTemplateType

type EmailTemplateType struct {
	Subject EmailSubjectFunc
	Text    EmailFunc
	Html    EmailFunc
}

type MessageObject

type MessageObject map[string]string

type TemplateDataType

type TemplateDataType map[string]interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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