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
0
votes
1 answer

using mvcmailer in mvc3

I'm trying to use mvcmailer in my mvc web app. When I used it in a dummy project and continued the steps stated in the wiki, it worked fine and I was able to send an email. But when I tried to integrate it in my web app, its giving an error at…
Arnab
  • 2,324
  • 6
  • 36
  • 60
0
votes
1 answer

Data in Form not Emailed - MvcMailer

I am trying to send the contents of a form with MvcMailer in my MVC 3 web application. The email sends, but it does not populate with the data from the form. Here is the view of my form: @using (Html.BeginForm()) {…
Amy
  • 503
  • 4
  • 9
  • 20
0
votes
1 answer

MvcMailer: The context is already tracking a different entity with the same resource Uri

i cant seem to figured out why i cant install nuget pakcage ive tried running this in visual studio 2010 package manager Install-Package MvcMailer but i get an error shown below PM> install-package MvcMailer Install-Package : The context is already…
vvavepacket
  • 1,882
  • 4
  • 25
  • 38
0
votes
1 answer

Unable to install MvcMailer

I tried intalling Mvc Mailer by entering the command "Install-Package MvcMailer" in the Package Manager Console, but I'm getting the following error message: Successfully installed 'MvcMailer 1.1'. Successfully added 'MvcMailer 1.1' to…
Jean-François Beauchamp
  • 5,485
  • 8
  • 43
  • 77
0
votes
3 answers

Microsoft.Office.Interop.Outlook does not work on web server but works on local machine

I am using below code in the button event, so that user can send mail through self machine outlook directly (nuget Microsoft. Office. Interop.Outlook). Code is working when I am debugging below code in my localhost and send mail from outlook. But…
Dinesh Patil
  • 104
  • 2
  • 8
0
votes
4 answers

MvcMailer russian charset in Body problem

I have MVCMailer installed at my app. But When i sent the mail with russian charset body i get something like this: Ïðèâåòñòâóåì Âàñ íà ñàéòå Good looking, isnt it? :) For detailed info, can show IUserMailer.cs: namespace photostorage.Mailers { …
Evgeniy Labunskiy
  • 2,012
  • 3
  • 27
  • 45
0
votes
1 answer

Can MvcMailer use .aspx files instead of Razor

I recently installed Mvcmailer. Its default view engine has been set to Razor. I would like to know how (if possible) to switch it to ASP.NET View Engine
David
  • 5,403
  • 15
  • 42
  • 72
0
votes
1 answer

Set-DefaultScaffolder : Could not find scaffolder 'Mailer.Razor' in Visual Studio 2017 and MVC Mailer 4.0.5

Under Visual Studio 2017 while installing MVCMailer 4.5.0 I encounter the following error: Set-DefaultScaffolder : Could not find scaffolder 'Mailer.Razor'
ColinICN
  • 83
  • 6
0
votes
1 answer

Receiving "Value cannot be null. Parameter name: httpContext" when sending MVC Mailer email from ASP MVC

My MVC Mailer instance is failing when I send from the server. I'm getting the error Value cannot be null.Parameter name: httpContext when I attempt to send an email. my code looks like this: public static void SendApproval(TimeOffRequest…
0
votes
1 answer

MvcMailer Areas and _Layout Issue

I am using MvcMailer for sending email in my project. everything OK but when I send email in admin area, email is sent with admin area layout, and It doesn't use "~/View/UserMailer/_Layout.cshtml". In Github of this project, some one discuss this…
Majid Basirati
  • 2,665
  • 3
  • 24
  • 46
0
votes
0 answers

Yahoo mail content displaying as base64 string

I'm using Mvc mailer to send Html Emails to external domains, I am able to send mails to all domains var mailMessage = new MvcMailMessage { Subject = "sample mail" }; mailMessage.IsBodyHtml = true; mailMessage.To.Add("test@gmail.com"); var…
buvi suri
  • 173
  • 1
  • 14
0
votes
1 answer

Rails Model Variables in Mailer

I'm not one hundred percent sure I can explain what I'm hoping to do, but here's an attempt: I've got several models that I need to build mailers for. Here's one: class SendLink < ApplicationMailer default :from => 'info@mysite.com' def…
PSCampbell
  • 858
  • 9
  • 27
0
votes
0 answers

how to send mail with mvcMailer on host

how to send mail with mvcMailer on host www.mywindowshosting.com ? I am using the following code : UserMailer class : public class UserMailer : MailerBase, IUserMailer { public UserMailer() { MasterName =…
testStack
  • 345
  • 1
  • 6
  • 18
0
votes
0 answers

SendAsync always showing Status Waiting using MVCmailer

I am developing application in MVC5 and MVCMailer. I am sending email using SendAsync command which always show Status = "WaitingforResponse" and mail is not sent. If I use "Send" command instead, it works fine. Here is my code: var v = new…
Ubiquitous Developers
  • 3,637
  • 6
  • 33
  • 78
0
votes
1 answer

Using MVCMailer with ASP.Net Web Api

I'm using ASP.Net Identity and in my Web Api project in its AccountController I want to send verification email to new users. I have plugged my email service using MVCMailer to the ASP.Net identity. public class EmailService :…
Hashem Aboonajmi
  • 13,077
  • 8
  • 66
  • 75