Go to file
Evan Chen 06889facfb update 2021-12-17 12:54:03 +08:00
auth update 2021-12-17 01:56:21 +08:00
cmd/test update 2021-12-17 12:54:03 +08:00
docs update 2021-12-16 12:11:33 +08:00
email update 2021-12-17 12:54:03 +08:00
errors update 2021-12-16 12:11:33 +08:00
history update 2021-12-17 02:03:07 +08:00
server update 2021-12-17 01:45:09 +08:00
store update 2021-12-16 12:11:33 +08:00
system update 2021-12-17 11:46:04 +08:00
task update 2021-12-16 12:11:33 +08:00
util update 2021-12-17 00:25:29 +08:00
.gitignore update 2021-12-16 12:11:33 +08:00
Makefile save 2021-12-16 19:44:07 +08:00
README.md update 2021-12-17 12:54:03 +08:00
build.sh update 2021-12-16 23:45:31 +08:00
go.mod update 2021-12-17 12:54:03 +08:00
go.sum update 2021-12-17 12:54:03 +08:00
run.sh save 2021-12-16 19:44:07 +08:00

README.md

Kumoly App

combine all needed module into one lib

Run


Email

m := gomail.NewMessage()
m.SetHeader("From", "from@example.com")
m.SetHeader("To", "to@example.com")
m.SetHeader("Subject", "Hello!")
m.SetBody("text/plain", "Hello!")

s := gomail.SendFunc(func(from string, to []string, msg io.WriterTo) error {
	// Implements you email-sending function, for example by calling
	// an API, or running postfix, etc.
	fmt.Println("From:", from)
	fmt.Println("To:", to)
	return nil
})

if err := gomail.Send(s, m); err != nil {
	panic(err)
}