Questions tagged [mvcmailer]

MvcMailer provides you with an ActionMailer style email sending NuGet Package for ASP.Net MVC 3. So, you can produce professional looking emails composed of your MVC master pages and views with ViewBag.

MvcMailer is an ASP.NET MVC Mailer, inspired by Ruby on Rails ActionMailer, that helps composing Email body using regular ASP.NET MVC views.

Step by step guide: https://github.com/smsohan/MvcMailer/wiki/MvcMailer-Step-by-Step-Guide

Introduction: http://www.codeproject.com/KB/aspnet/MvcMailerNuGet.aspx

Installation

MvcMailer can most easily be installed through its NuGet package.

Install-Package MvcMailer
114 questions
2
votes
1 answer

How do I change the SMTP Client, User and Password dynamically in MVC Mailer?

In the step by step guide at: https://github.com/smsohan/MvcMailer/wiki/MvcMailer-Step-by-Step-Guide It is stated that the .net mail lib is used (System.Net.Mail). In medical transactions, there is a need to change servers based on country region…
OpTech Marketing
  • 417
  • 2
  • 6
  • 19
2
votes
2 answers

Issue with MVCMailer

Not sure if anyone else has run into this issue but I'm trying to send emails using MVCMailer. I was able to get it installed and updated the T4Scaffolding package without any issues. I have an aspx page that is creating a report and I want that…
George
  • 21
  • 1
1
vote
1 answer

Using MVCMailer to embed image from MemoryStream in email

I use MVCMailer with asp.net MVC 3. It's a great library but I have a problem. I saw it's possible to embed image in email like so : var resources = new Dictionary(); resources["image"] = imagePath; PopulateBody(mailMessage,…
Dragouf
  • 4,676
  • 4
  • 48
  • 55
1
vote
1 answer

Logging errors when sending ASync email with MvcMailer

I'm using the excellent MvcMailer package to send email from within my application. I'm using the SendAsync() method to send email, and would like to log errors + dispose of attachments i.e. MailMessage message =…
seekay
  • 2,493
  • 3
  • 27
  • 33
1
vote
1 answer

Send Multiple Emails with MvcMailer

I am developing an MVC 3 project and would like to send invoices out to clients each month by email. How would I send out these multiple emails, and if a loop, how would I code this loop? Here is my InvoiceMailer code: public virtual MailMessage…
Amy
  • 503
  • 4
  • 9
  • 20
1
vote
2 answers

How sending emails to users authorised to view a post - polymorphic association Ruby-on-Rails

Using polymorphic association, I was able to give specific users access to edit a particular post. My model looks like this User model has_many :postuser has_many :posts, through: :postuser Post model has_many :postuser has_many :users, through:…
Mozart Len
  • 111
  • 1
  • 9
1
vote
1 answer

MvcMailer view in browser

I am using MvcMailer with my website to send html emails. seems good, but im just wondering how i can view the created emails in a browser. eg in some newsletters they say "view this email in a browser", so i am just wondering how I can do that with…
raklos
  • 28,027
  • 60
  • 183
  • 301
1
vote
1 answer

MvcMailer, Find the file name of the email

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…
ecasper
  • 489
  • 1
  • 10
  • 30
1
vote
3 answers

ä character in MailMessage.Subject showing up as ä in hotmail

Question: ä character in MailMessage.Subject shows up as ä in hotmail. In Gmail the ä character in the subject looks fine. How do you do you properly encode MailMessage.Subject so that the ä character doesn't get converted to ä? This is how I…
PussInBoots
  • 11,028
  • 9
  • 52
  • 84
1
vote
1 answer

How to send View from different folder than UserMailer (MVCMailer)?

I have a report displayed on the Screen and would like to be able to send it content via email when user press SendEmail link. I have installed MVCMailer and trying to send it but it arrives as empty message. When I follow the example in here it…
Whistler
  • 1,897
  • 4
  • 29
  • 50
1
vote
0 answers

Send emails from Pickup folder Or process .EML files

I am using MVCMailer plugin for generating emails from my asp.net MVC3 application and the settings is to save mails in PickupDirectory and the application is saving the E-mail type files inside the directroy .(.eml files in the directory)
Sebastian
  • 4,625
  • 17
  • 76
  • 145
1
vote
1 answer

Look for package to send emails using razor view templates

I am looking for a package to send emails using razor views as templates. So far I have found the following options. MvcMailer - Looks like it has issues working with MVC5+ and hasn't been updated in a while. ActionMailer.Net - No longer…
CountZero
  • 6,171
  • 3
  • 46
  • 59
1
vote
0 answers

MVCMailer not sending MVC4

I'm using MVCMailer to send email, when I sent the email I don't have any error message everything pass correctly, I'm folowwing these steps : https://github.com/smsohan/MvcMailer/wiki/MvcMailer-Step-by-Step-Guide What I found strange is that I put…
ProtoCUS
  • 49
  • 2
  • 13
1
vote
1 answer

Strongly Typed Model with MvcMailer

i am facing troubles passing strongly typed model to MvcMailer view. I am using asp.net mvc3 and installed MvcMailer3 using nuget. There is no error messages and message is sent successfully but the data fields are not populated. I am doing…
Choudhury
  • 273
  • 1
  • 5
  • 14
1
vote
1 answer

MVC Mailer layout is not rendering any html other thatn the RenderBody method

Hi I am using MVC Mailer to manage creating and sending emails in my application. It will create and send the email fine but any html I insert inside the body in the layout is not in the email. Mailer public class Mailer : MailerBase, IMailer { …
Jeff Finn
  • 1,975
  • 6
  • 23
  • 52