MvcMailer | Net MVC that forms the Email Body using MVC Views | Model View Controller library
kandi X-RAY | MvcMailer Summary
kandi X-RAY | MvcMailer Summary
MvcMailer is an ASP.NET MVC Mailer, inspired by Ruby on Rails ActionMailer, that helps composing Email body using regular ASP.NET MVC views. This one works with .Net 4.0 for now. ##Report Feature or Issues.
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 MvcMailer
MvcMailer Key Features
MvcMailer Examples and Code Snippets
Community Discussions
Trending Discussions on MvcMailer
QUESTION
I'm using MvcMailer to save emails to a specified directory locally in my asp.net mvc web application. However I would like to save the file name (e.g. 90b871cd-038f-400a-b4d7-01f87e8c3c26.eml) of the email in the database which will later be accessed using another exe to send emails from the pick up folder.
Could you please advise me on how to retrieve the file name from the mail object?
...ANSWER
Answered 2018-Sep-04 at 20:31I thought it might be helpful for someone who will be seeking the answer for the same question. I managed to overcome the issue writing a reflection of System.Net.Mail.MailMessage.Send() as follows.
QUESTION
I have been trying to obtain a html and translate the razor code in a string to send and email to multiple users. The emails are scheduled by Quartz
and send to the users.
The mail is generating a link via @Url.Action
. I notice that I don't have a Controller
nor HttpContext
at this point on my application. I have been trying a way to translate the razor
code (RazorEngine
and MvcMailer
) to a string and sending in the email, but with no use because I cannot translate the @Url.Action
and can't find a working package MvcMailer
for Visual Studio 2017
Is there a way to possible do this?
Here is the template of the Email:
...ANSWER
Answered 2017-Oct-13 at 10:50As @Stanislav Nedeljkovic suggested, I put the Url on a config file and manage to create and HttpContext
with it. Then I could translate the rest with RazorEngine
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install MvcMailer
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