Comments (4)
Thanks for the comments and suggestions.
-
You could add your own implementation of IViewEngine to the MVC ViewEngines collection. That could then pull views from anywhere you like.
-
You can get the generated MailMessage. Use an EmailService object and call CreateMailMessage(email). That will do everything, except sending the email. You can then do what ever you want with it. (And send using SmtpClient instead).
Bcc, CC and Reply-To all work. I'm missing Priority at the moment.
from postal.
-
I guess what I was suggesting was more general...you request the view, try to locate it, etc - why not just let the developer pass in the string to use as a template?
-
Ok, nice - did not see that anywhere in the examples, etc.
-
Bcc, cc, and replyto.....how do you specify multiple email addresses?
Thanks!
from postal.
-
Passing in a template string means Postal then has to worry about what template engine that string uses. I could in theory allowing passing in an IView object to render, but I think sticking with using the ViewEngine to find the view is simpler for me.
The other option is to implement your own IEmailViewRenderer and pass that to the EmailService. That lets you by-pass the ViewEngine stuff altogether then. -
Good point - I'll have to update the wiki
-
You can specify the same header more than once. For example, Postal calls "mailMessage.Bcc.Add(emailAddress)" for each Bcc header.
(Again, I should update the wiki for this.)
from postal.
- Or comma separate the email addresses in a single header.
from postal.
Related Issues (20)
- Add support on other html attributes except alt in @Html.EmbedImage() HOT 2
- How to add external link with params? HOT 2
- Is this project still being supported? HOT 3
- How to identify if the email is sent or not HOT 3
- Html Helpers not working from console application HOT 4
- Postal MVC5 project references MVC 5.1.0.0 instead of 5.1.2 as the requirements state HOT 5
- Postal w/o MVC NuGet package?
- How to provide smtp settings runtime(not in web or app config)
- With Framework 4.6.2 it give error Attempted to access an element as a type incompatible with the array HOT 4
- Previewing emails with addresses with names HOT 3
- Install-Package : Input string was not in a correct format. HOT 5
- Continuation of Postal HOT 26
- enable sasl authentification HOT 7
- System.ArgumentNullException with .NET 4.5.2 WebApi HOT 9
- Sample For Postal.AspnetCore? HOT 3
- The parameter 'addresses' cannot be an empty string. HOT 1
- Layouts Stopped Working
- MVC4 throws exception when using autofac and MVC async controller actions
- How to use Postal with Unity IoC Container MVC 5?
- Subject encoding HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postal.