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
0 answers

System.Net.Mail.SmtpException - But the email still sends

I have uploaded my WebAPI site to a staging server and when the application attempts to send an email via MvcMailer I receive an SmtpException, but the email does get sent, exactly as required to the correct recipient! Very odd behaviour. Surely the…
jamos
  • 213
  • 2
  • 8
0
votes
2 answers

MvcMailer Web API 2

I am trying to use MvcMailer on a web api and i am stuck!!! I am getting the following error. I think it has something to do with the routing between usermailer and view. I seen it can't find the view, but i could be wrong. Any help would be…
Valter
  • 2,859
  • 5
  • 30
  • 51
0
votes
1 answer

Request action aborted on MFE proxy, SMTP server is not available

Thanks for helping me out when I was stuck in doing something at one time or the other. I posted a question previously about extracting email contacts from an email address; I got help, but the problem is that I need to send email to the extracted…
Nnamdi
  • 29
  • 1
  • 9
0
votes
1 answer

how to handle exceptions in MVCMailer in ASP.NET MVC application

I'm using MVCMailer for the first time. I have created the mailviewmodel, view and i was able to send the mail successfully. _myMailer.SendMyMail(mailerModel).Send(); Now I want to catch an exception when email sending is failed. (When no internet…
0
votes
1 answer

MvcMailer and Quartz.Net httpContext is null

Okay, so I am trying to send out scheduled activity reminders via email every 30 minutes (If they scheduled an activity), and I have the Quartz stuff working and the MvcMailer worker, however, I am having trouble with getting the Quartz.Net to use…
Cincoutcin
  • 19
  • 3
0
votes
1 answer

MvcMailer with Mvc5 is failing

Exception: Attempt by method 'System.Web.Mvc.VirtualPathProviderViewEngine.GetPath(System.Web.Mvc.ControllerContext, System.String[], System.String[], System.String, System.String, System.String, System.String, Boolean, System.String[] ByRef)' to…
williamsandonz
  • 15,864
  • 23
  • 100
  • 186
0
votes
0 answers

No connection could be made because the target machine actively refused it "

I'm using Visual Web Developer 2010 Express Edition with MVC Mailer to send out email using SMTP. The only thing that is not working is the SMTP address. I get the error message, "No connection could be made because the target machine actively…
Saritha
  • 19
  • 11
0
votes
1 answer

html will not disply in email

Hi I am using Mailer to send email to a customer when they purchase an item. The email sends with all details included but the css styling is not recognised. If I "open the html page with" google chrome the styling is fine. _Layout.cshtml…
user2993038
  • 35
  • 1
  • 2
  • 6
0
votes
0 answers

MVC Mailer For Sending Register Email

I am trying to use MVC mailer using Razor engine to send out an email when the user has registred for a service. I would like to know how to call the controller for MVC mailer from a function which is written in another Controller say…
Saritha
  • 19
  • 11
0
votes
1 answer

How to access HttpContext from Service Layer in MVC

I'm trying to send formatted emails in my MVC project. I had normal emails being sent perfectly with this method in my BaseService class, which all other services inherit from: public void SendAsyncEmail(MailMessage message) { …
RobVious
  • 12,685
  • 25
  • 99
  • 181
0
votes
1 answer

Error in MvcMailer.dll

I am trying to use MvcMailer for sending e-mail in my MVC3 Application. I have successfully installed the package MvcMailer. Used Unable to install MvcMailer as reference and followed the steps. But it was not showing in References list so I…
blue
  • 568
  • 3
  • 10
  • 30
0
votes
1 answer

ASP.NET MvcMailer error

When sending mail from localhost, all works without problems error occurs after publishing site on server ** A connection attempt failed because the connected party did not properly respond after a period of time, or established connection …
Tihomir Budic
  • 309
  • 4
  • 13
0
votes
1 answer

Sending monthly emails automatically using mvcmailer

In my MVC application, I have this scenario. At the 25th of every month, certain users has to be fetched from the database and an email should be sent to them as alert. I am currently using mvcmailer in the project to send mail but a request has to…
0
votes
1 answer

McvMailer doesn't see views

I want to use MvcMailer in my application. I created a new class library project called MyMailer. Now I want to use it in my MVC app. // mailer public class MyMailer : MailerBase, IEdoctorMailer { public MyMailer() { MasterName…
Andrzej Gis
  • 13,706
  • 14
  • 86
  • 130
0
votes
1 answer

ViewBag empty when using MVC Mailer

I am using MVC Mailer - but for some reason when the view is rendered there is nothing in ViewBag. My code looks like this ViewBag.test = "This should appear in the view"; MvcMailMessage m = new MvcMailMessage(); …
Gavin
  • 21
  • 3