Go to file
Evan Chen aa1383ba5d update 2022-01-10 10:07:43 +08:00
attribute update 2022-01-09 18:30:35 +08:00
auth update 2022-01-09 05:54:07 +08:00
calendar update 2022-01-10 09:55:49 +08:00
control update 2022-01-09 05:33:17 +08:00
docs update 2021-12-16 12:11:33 +08:00
email update 2021-12-29 10:28:09 +08:00
errors update 2021-12-16 12:11:33 +08:00
history update 2021-12-25 01:04:04 +08:00
server update 2021-12-24 12:25:45 +08:00
store update 2022-01-10 10:07:43 +08:00
system update 2021-12-21 01:07:33 +08:00
task update 2021-12-20 10:23:08 +08:00
util update 2021-12-24 12:39:02 +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 2022-01-10 10:07:43 +08:00
go.sum update 2022-01-10 10:07:43 +08:00
helper.go update 2022-01-09 05:26:56 +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)
}