Added a patch to test email notifications

This commit is contained in:
Eduard Urbach 2017-11-20 15:33:03 +01:00
parent e4a5230f8c
commit c0adc13e32

View File

@ -0,0 +1,23 @@
package main
import (
"fmt"
"github.com/animenotifier/arn"
"github.com/animenotifier/arn/mailer"
)
func main() {
notification := &arn.Notification{
Title: "Boku dake ga Inai Machi",
Message: "Episode 16 has been released!",
Image: "https://media.notify.moe/images/anime/large/11110.webp",
Link: "https://notify.moe/anime/11110",
}
err := mailer.SendEmailNotification("e.urbach@gmail.com", notification)
if err != nil {
fmt.Println(err)
}
}