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
1
vote
1 answer

How to validate a string?

I was just wondering how one would write a code that validates a string? For example a user inputs a postal code (string). i have to make sure it follows a L#L#L# format L-> represents a letter only and #-> represents only a number not decimal ...if…
Saynab Aden
  • 29
  • 1
  • 2
1
vote
0 answers

How get mail content using Postal Swift Framework

I'm using the Postal is a swift framework providing simple access to common email providers. I have seen demo about it, but I don't know how I can have my text content that I need from a FetchResult? Thanks. This code fetch mail from mail…
1
vote
0 answers

Html Helpers not working from console application using postal

I have one console application and one mvc web application. That two application use one common class library to send mail using postal. From web its working send email with html embedding image but in console application its not working. I have do…
Vijay Maheriya
  • 1,617
  • 16
  • 21
1
vote
1 answer

Unit-testing mail sending with postal and moq

System.ArgumentNullException is thrown from System.Web.HttpBrowserCapabilities constructor when mail.Send() from test called. It requires httpBrowserCapabilities parameter. Code I have used: EmailModel: public class EmailModel :Email { public…
Cute pumpkin
  • 342
  • 3
  • 17
1
vote
1 answer

Disabling Glimpse for a certain code block

I'm using Glimpse (1.8.6) in a SharePoint provider hosted add-in with an ASP.NET MVC application. At one place we're using a SharePoint remote event receiver, which is a call from SharePoint into our ASP.NET 5 application, into which we use Postal…
Pascal Berger
  • 4,262
  • 2
  • 30
  • 54
1
vote
2 answers

Select records based on the postal code and it's radius in MySQL

Below is my postal table with a few records. In fact this table contains all cities and all postal codes. id city postalcode latitude longitude 1 Drogteropslagen 7705 PA 52.61666700 6.50000000 2 …
O Connor
  • 4,236
  • 15
  • 50
  • 91
1
vote
2 answers

Using Postal with QueueBackgroundWorkItem - The request lifetime scope cannot be created > because the HttpContext is not available

I'm using Postal to send emails. My application is an ASP.net MVC application. I use Autofac (MVC5 integration) I've set up Postal like so: dynamic email = new Email("TemplateName"); email.To = "test@email.com"; email.From =…
Alex
  • 37,502
  • 51
  • 204
  • 332
1
vote
1 answer

"Attempted to access an element as a type incompatible with the array" thrown during creating a custom EmailService in Postal

I'm trying to configure Postal in class library project. To do this I need to configure custom EmailService. On Postal webpage there's a snippet for doing this: // Get the path to the directory containing views var viewsPath =…
Arkadiusz Kałkus
  • 17,101
  • 19
  • 69
  • 108
1
vote
1 answer

Value cannot be null. Parameter name: httpContext

I encountered this error message "Value cannot be null. Parameter name: httpContext" when I tried to send email by using Postal.mvc5. This error happened when tried to call Postal.EmailService.CreateMailMessage(Email email). Anyone one can help on…
cheng
  • 13
  • 1
  • 6
1
vote
1 answer

Sending mail with Postal library in MVC 5

I'm using the Postal library to send emails from the contact page. I have the following code: ContactEmail using AccessorizeForLess.ViewModels; using Postal; using System; using System.Collections.Generic; using System.ComponentModel; using…
PsychoCoder
  • 10,570
  • 12
  • 44
  • 60
1
vote
1 answer

MVC 5 Using POSTAL with Models

I am trying to use Postal in Mvc.5.2.3 and Razor.3.2.3 in Visual studio Ultimate 2013, I have many forms to generate for this project and would like to use Views as i would like to Post content to a database as well as send an email out with the…
pool pro
  • 2,084
  • 12
  • 21
1
vote
2 answers

Including logo when sending email via postal

In my MVC4 application, I am using the postal package for sending emails. I am trying to include a logo via an tag, but it's not working. How can I include my company logo? Controller Action: public ActionResult Index() { dynamic…
ren
  • 93
  • 12
1
vote
2 answers

MVC Postal Emailer Conflicting With Mvc.Unity4

I'm experiencing a weird issue when attempting to use Postal within an MVC application that also uses Mvc.Unity4. I believe the issue is thrown due to lacking access to the HttpContext. I attempt to send the email from inside one of my Controllers…
1
vote
2 answers

Postal for ASP MVC 4 wants me to use MVC 5

I just installed postal for ASP MVC with NuGet and tried compiling it after I set up some code to send an email. I was given an error that is telling me I need to use MVC version 5.1 for Postal version 0.9.2. My MVC project is a MVC 4 project type…
chuckd
  • 13,460
  • 29
  • 152
  • 331
1
vote
2 answers

when using Postal mail MVC 4 Razor Mobile View Engine generates error

I am using postal mail to send an order confirmation. It is an MVC4 project. The code was sending email confirmations correctly. Recently, I have added MVC mobile to the project. Everything works - except when sending a confirmation email when…