Questions tagged [actionmailer.net]

18 questions
13
votes
2 answers

ActionMailer.Net Stand-Alone: There is no build provider registered for the extension '.cshtml'

I need to send emails from a Windows Service and came across ActionMailer.net, a templated email system that can be used either within an ASP.Net MVC application or stand-alone. Following the stand-alone…
Eric J.
  • 147,927
  • 63
  • 340
  • 553
4
votes
2 answers

Unrecognised attribute 'enableSsl' in .NET v4.0

We've been running a new system in test for a while now and creating emails to a folder so they don't accidentally go out to clients. Now we've turned on live emailing we are getting issues with sending. I'm using ActionMailer.NET and the code to…
Red
  • 3,030
  • 3
  • 22
  • 39
3
votes
1 answer

Is it possible to run mvc mailer from a separate project

I'm currently running an MVC website alongside a WebApi and I'm looking into building in the email functionality. I have very lightweight controllers abstracting most of the logic away to a service layer as it's a fairly big application and I want…
Neil
  • 5,179
  • 8
  • 48
  • 87
3
votes
2 answers

How to use Actionmailer.Net.Standalone in a console application?

Is is possible to use Actionmailer.Net.Standalone in a console application? I keep getting an error that: Could not find any CSHTML or VBHTML views named [CRD.html.cshtml] in the path [EmailTemplates]. Ensure that you specify the format in the…
2
votes
0 answers

ActionMailer.Net.Mvc.EmailResult - inline image not in email, how to see html body of resulting email?

MVC 4, c#.net sending emails using ActionMailer.Net.Mvc.EmailResult using smtp server using: _email_layout.cshtml header.png
Karen Slon
  • 233
  • 1
  • 4
  • 16
2
votes
0 answers

Testing ActionMailer.Net.Mvc HttpContext Is null

I am trying to write the integration test to test my Mailer class. This mailer class calls ActionMailer.Net.Mvc.MailerBase Email Method to send mails. I have set the attribute on the Test Method [UrlToTest("http://localhost:8000/")]…
2
votes
2 answers

Mocking MailController with ActionMailer.net using Moq

I'm trying to mock my MailController _mockMailController = new Mock(); _mockMailController.Setup(x => x.ForgotPassword("test@email.com")); My controller takes an IMailController as a dependancy, however when I…
Alex
  • 37,502
  • 51
  • 204
  • 332
1
vote
1 answer

ActionMailer standalone @Html

Hi I'm trying to use actionmailer standalone in a WCF service and everything works according to plan when it comes to substituting data using Model.XXX. The problem starts when I try parsing templates using @Html I receive : Unable to compile…
Anders Nilsson
  • 1,465
  • 12
  • 12
1
vote
0 answers

ActionMailer.net Standalone - Layouts

Are layouts possible with ActionMailer.net Standalone? I've tried several different permutations, but can't seem to get layouts to work.
drogon
  • 1,785
  • 3
  • 21
  • 34
1
vote
2 answers

Could not find any CSHTML or VBHTML views

I'm using the ActionMailer.Net.Standalone package in a class library. In the root of the project I have a folder called "Templates" where I have my file OrderConfirmation.html.cshtml. Like this: Here is my mailer class: public class Mailer :…
Mike
  • 2,561
  • 7
  • 34
  • 56
1
vote
1 answer

ActionMailer.Net Can't find view in different Area

I am using ActionMailer.net to send emails from my mvc 4 application. This works when my initiating controller and the actionmailer controller and view are in the same Area. But fails when they are not as it cannot find the view. This heirarchy…
crichavin
  • 4,672
  • 10
  • 50
  • 95
1
vote
1 answer

Capturing error if it occurs

How to do that if there is any error (anyone) to capture this error and write to a log .. Recently a client changed the password webmaster (email used to authenticate messages sent) And this meant that the system was no longer able to send…
ridermansb
  • 10,779
  • 24
  • 115
  • 226
1
vote
3 answers

Sending Emails with ActionMailer.Mvc in VB, Cannot Find View

The error I get when I try to send an email is: NoViewsFoundException You must provide a view for this email. Views should be named ~/Views/Email/VerificationEmail.html.vbhtml.txt.cshtml or …
user1477388
  • 20,790
  • 32
  • 144
  • 264
0
votes
0 answers

sending email with utf-8 characters in the subject

I'm using ActionMailer.net to send email. No matter what I do I can not get the subject in utf-8, it displays just question marks. Body shows in utf-8. This is my last attempt to solve the issue: public EmailResult…
dsb
  • 2,347
  • 5
  • 26
  • 43
0
votes
1 answer

ActionMailer MVC - Set multiple SMTP, Email Sender in webconfig OR in C#

I would like to use multiple sender's email (smtp) for different cases with actionmailer MVC. For example, if it's a new user registering, then the confirmation will be sent with the register@example.com email. If the user get contact by another…
alex
  • 55
  • 1
  • 13
1
2