mail

package
v0.0.0-...-0eec0e3 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendEmail

func SendEmail(data []types.NotificationData, htmlTemplate *template.Template) error

Types

type EmailConfig

type EmailConfig struct {
	OutGoingMailServer string `envconfig:"OUT_GOING_MAIL_SERVER" default:"smtp.tma.com.vn"`
	MailServerPort     int    `envconfig:"OUT_GOING_MAIL_PORT" default:"25"`
	Subject            string `envconfig:"EMAIL_SUBJECT" default:"Prepare for customer visit"`
	MailFrom           string `envconfig:"MAIL_FORM" default:"ofriends.oficial@tma.com.vn"`
	MailTo             string `envconfig:"MAIL_TO" default:"pdkhang@tma.com.vn"` // for test, to avoiding  send real to internal communication department
}

Jump to

Keyboard shortcuts

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