Postal.NET | Postal.NET - Postal
kandi X-RAY | Postal.NET Summary
kandi X-RAY | Postal.NET Summary
Postal.NET is a .NET Standard library for writing decoupled applications. It is loosely based upon the Postal.js JavaScript library and follows the Domain Events and Pub/Sub patterns. It was written by Ricardo Peres (@rjperes75). As of version 1.1 it now targets .NET Standard 2.0.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Postal.NET
Postal.NET Key Features
Postal.NET Examples and Code Snippets
Community Discussions
Trending Discussions on Postal.NET
QUESTION
Hej Community,
I am fairly new asking questions at SO so pardon if I am unclear at some point and just drop me a note and I will clarify.
Stack
- ASP.NET MVC5
- Postal.net
The Situation
I have a class library to send emails from my web app using Postal.Net. The view files (*.cshtml) are stored in the main web app in (~\Content\email\*)
in order to access them at run time at the current domain. It works like a charm.
Now I'd like to re-use the email library and email templates in another web app. I put the same view files in the exact same place of this new web app (~\Content\email\*)
.
The email library finds the view files and I also made the razor related statements, such as @model
, work and I can send emails.
The Issue
I am using @Raw
in the the HTML email template which causes an error during compilation with the message:
CS0103 The name 'Raw' does not exist in the current context
The statement is needed in order to take care of special characters of names and to insert a working button into the email.
I added the following lines to the web.config
of the new project:
ANSWER
Answered 2019-Dec-17 at 10:47The problem could not be solved and the implementation was realized using another library called FluentEmail on Github. It is maintained and much simpler to implemented.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Postal.NET
Install via Nuget: https://www.nuget.org/packages/Postal.NET.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page