Go to file
Evan Chen df63ab8d5e update 2021-12-25 03:31:53 +08:00
attribute update 2021-12-20 10:23:08 +08:00
auth update 2021-12-22 02:17:30 +08:00
calendar use transaction 2021-12-25 00:56:16 +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-25 03:31:53 +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 2021-12-20 10:23:08 +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 2021-12-20 02:55:46 +08:00
go.sum update 2021-12-20 02:55:30 +08:00
helper.go feat: add calendar 2021-12-24 16:56:16 +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)
}