diff --git a/_examples/intermediate/e-mail/main.go b/_examples/intermediate/e-mail/main.go index eec2bdd2..f17cf0fa 100644 --- a/_examples/intermediate/e-mail/main.go +++ b/_examples/intermediate/e-mail/main.go @@ -5,6 +5,7 @@ import ( "github.com/kataras/go-mailer" "gopkg.in/kataras/iris.v6" + "gopkg.in/kataras/iris.v6/adaptors/view" "gopkg.in/kataras/iris.v6/adaptors/httprouter" ) @@ -15,6 +16,8 @@ func main() { app.Adapt(iris.DevLogger()) // set the router, you can choose gorillamux too app.Adapt(httprouter.New()) + // set a root for our templates + app.Adapt(view.HTML("./templates", ".html")) // change these to your own settings cfg := mailer.Config{