Questions tagged [postal]

Postal lets you create emails using regular ASP.NET MVC views.

Postal is an email library for ASP.NET MVC.

Main Project Site: http://aboutcode.net/postal

80 questions
0
votes
0 answers

MVC Postal Email send object with List?

I need to send a list of tasks to users in my MVC application. public static void Send() { try { StringBuilder sb = new StringBuilder(); UserRepository userRepo = new UserRepository(); var…
sony
  • 1,453
  • 3
  • 35
  • 79
0
votes
3 answers

ASP MVC Postal RazorEngine.Templating.TemplateCompilationException

I'm trying to use ASP MVC Postal in a background job to send emails as follows: public void CommentCreated(Comment comment, ApplicationUser user) { var viewsPath = Path.GetFullPath(HostingEnvironment.MapPath(@"~/Views/Emails")); …
adam78
  • 9,668
  • 24
  • 96
  • 207
0
votes
1 answer

Set a job to failed using Hangfire with ASP.NET?

I have an ASP.NET app which sends emails whenever the user signs up in the web site. I'm using hangfire in order to manage the jobs and postal in order to send emails. It all works great, but here's the thing: I want the superuser to change how many…
Luis Deras
  • 1,239
  • 2
  • 19
  • 48
0
votes
1 answer

How to send an email to multiple email addresses in the database using Postal in ASP.NET MVC

I'm trying to find a solution on how to send an email to multiple Hospital email addresses depending on which orders are linked to the Delivery that the change is being made on - using Postal. So for a bit of context, I wish to send the same email…
mustang00
  • 313
  • 2
  • 9
  • 23
0
votes
1 answer

How to send an email on Postal using an email address from the database Asp.Net MVC

I've currently implemented Postal and I'm using that to send emails on my MVC application. The problem I'm having is that I want to retrieve an email address from my database, instead of hard-coding the address I want to send the email to. So to…
mustang00
  • 313
  • 2
  • 9
  • 23
0
votes
1 answer

Entire email not being populated when sent - Postal, MVC 5

I'm using the Postal library to send emails from the contact page on the site I'm working on, it sends the email but not all items are being included in the email. I put a breakpoint in and stepped through the code and all the items are in the model…
PsychoCoder
  • 10,570
  • 12
  • 44
  • 60
0
votes
1 answer

Google Maps JS APIv3 - geocode returns the location of the INSEE code instead of the Postal Code

I recently developed a dealer geolocation platform with Google Maps V3 Js API, however I realized that when the user enters a zip code, geolocation is poor. For example, if the user searches 13001 (1st district of Marseilles), geolocation is done on…
DevFdbck
  • 51
  • 1
  • 2
0
votes
1 answer

Unable to add new MVC 5 View Pages

After I installed Postal for MVC5 today, whenever I try to add a new MVC 5 View Page (Razor), I get the following error: Error: this template attempted to load component assembly 'Microsoft.VisualStudio.Web.Mvc.5.0, Version=5.0.0.0,…
enb081
  • 3,831
  • 11
  • 43
  • 66
0
votes
1 answer

Using Html in Postal with IEmailService

I want to use Postal (http://aboutcode.net/postal/) to generate e-mails from template views. We are using it in an hybrid MVC and WebForms app. I am trying to generate a MailMessage with Postal and then apply some legacy custom logic and send…
EtienneT
  • 5,045
  • 6
  • 36
  • 39
0
votes
1 answer

Is it possible to use jquery in Postal ASP. Net emails

Im trying to load a header from a html file into the html view that I want to populate with data using Postal. However this doesn't seem to be working even though I'm sure my code is syntactically correct. Everything gets returned in the email…
jonv562
  • 293
  • 1
  • 4
  • 23
0
votes
0 answers

How to generate dynamic emails in Postal.MVC

I would like to inject content into emails from the database. I tried to do this in the View. To: @ViewBag.To From: lolcats@website.com Subject: Important Message Static…
Piotr Kula
  • 9,597
  • 8
  • 59
  • 85
0
votes
1 answer

A dependency injection Exception with Postal and Unity

In my ASP.NET Web MVC Controller (v5.1), I wanted to switch to using the IEMailService on Postal (v0.9.1), so I did following on my controller: public class HomeController : Controller { private readonly IEmailService _emailService; public…
Magnus Johansson
  • 28,010
  • 19
  • 106
  • 164
0
votes
3 answers

Unit Tests - Referencing 3.0.0.0 MVC, version actually 4.0.0.0

I am testing SendEmail using Unit Tests (Nunit): // Arrange var mockDbContext = new Mock(); IService service = new Service(mockDbContext.Object); // Act var result = service.SendEmail(string.Empty,1,1); //Assert Assert.That(result,…
ClareBear
  • 1,493
  • 6
  • 25
  • 47
0
votes
1 answer

RuntimeBinderException, Razor not picking up _ViewStart in subfolder

We have a site where the Layout is set based on a dbconfig in ~/Views/_ViewStart.cshtml like so @{ Layout = ViewContext.ViewBag.MyConfig.ThemeName; } And all's working fine except when we added a Emails folder to views ( for the Postal Nuget…
Kumar
  • 10,997
  • 13
  • 84
  • 134
0
votes
1 answer

Confirmation Url comes up as a string in Hotmail

I have this in my Account Controller Register: var token = WebSecurity.CreateUserAndAccount( model.UserName, model.Password, new { model.Email …
Komengem
  • 3,662
  • 7
  • 33
  • 57