0

I've been trying to follow this instructions to implement email templating using NVelocity but I keep getting a resource not found exception from the GetTemplate method.

I've used Server.MapPath full routes and also relative routes and haven't been able to make it work.

Raúl Roa
  • 12,061
  • 13
  • 49
  • 64

2 Answers2

0

Since you mention Server.MapPath, I'm going to guess that this is for a web page. In case, is this in a MonoRail Website? If so, then there are methods on the Controller object for sending emails from a webpage, which make it much simpler (and the templates go in Views/email folder.)

Bernhard Hofmann
  • 10,321
  • 12
  • 59
  • 78
James Curran
  • 101,701
  • 37
  • 181
  • 258
0

The problem was related to the version of the NVelocity assembly I was using.

Raúl Roa
  • 12,061
  • 13
  • 49
  • 64