andrewdavey / postal

Email sending for asp.net mvc using the view engine system to render emails.
http://aboutcode.net/postal
MIT License
536 stars 168 forks source link

Is it possible to run postal from a console app? #118

Open curlyfro opened 9 years ago

curlyfro commented 9 years ago

i'm trying to use Postal from within NServiceBus console app but i'm getting an httpCapabilities cannot be null error.

does anyone know why?

andrewdavey commented 9 years ago

Have you followed the example here: http://aboutcode.net/postal/outside-aspnet.html ?

mulgurul commented 9 years ago

Yep, got the same problem, allthough it is only when you use dynamic Email.

If you use the stronly typed model, and call SendEmail(model) then it works.

Unfortunatly I really needed the dynamic method:-(

So great if it could be fixed!

BT Peter