Go to file
Evan Chen 2de0509b26 update 2021-12-19 01:54:17 +08:00
attribute update 2021-12-19 01:54:17 +08:00
auth update 2021-12-19 01:37:44 +08:00
control update 2021-12-18 17:30:05 +08:00
docs update 2021-12-16 12:11:33 +08:00
email update 2021-12-17 16:22:04 +08:00
errors update 2021-12-16 12:11:33 +08:00
history update 2021-12-18 21:32:46 +08:00
server update 2021-12-17 15:52:32 +08:00
store update 2021-12-16 12:11:33 +08:00
system update 2021-12-19 01:37:44 +08:00
task update 2021-12-18 21:32:46 +08:00
util update 2021-12-17 00:25:29 +08:00
.gitignore update 2021-12-16 12:11:33 +08:00
Makefile update 2021-12-17 15:52:32 +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
helper.go update 2021-12-19 01:37:44 +08:00
main_test.go update 2021-12-19 01:37:44 +08:00
run.sh update 2021-12-17 15:52:32 +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)
}