mvcmailer

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

╄→尐↘猪︶ㄣ 提交于 2019-12-25 02:34:07
问题 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 emails using the google smtp server(smtp.gmail.com, 587). When I try to send email, I receive this message "Error in processing. The server response was: Request action aborted on MFE proxy, SMTP server is not available" What should I do? 回答1: I had

sending multiple emails with mvcmailer

跟風遠走 提交于 2019-12-22 08:39:18
问题 Im looking to use MVCMailer to send emails using asp.net mvc 3 with razor. Also mentioned by ScottHa It looks fairly straight forward, however i'm confused as to how I would send batch emails eg like a newsletter to a list of users. do i create a loop around this? public virtual MailMessage Welcome() { var mailMessage = new MailMessage{Subject = "Welcome to MvcMailer"}; mailMessage.To.Add("sohan39@example.com"); ViewBag.Name = "Sohan"; PopulateBody(mailMessage, viewName: "Welcome"); return

Unable to install MvcMailer

◇◆丶佛笑我妖孽 提交于 2019-12-19 11:46:14
问题 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 MatchesHorsConcours. Install-Package : The term 'Set-DefaultScaffolder' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name , or if a path was included, verify that the path is correct and try

mail server requires authentication when attempting to send to a non-local e-mail address when using MVCMailer

可紊 提交于 2019-12-12 14:14:08
问题 I want to send NewsLetter Emails to users. I have done like this: public ActionResult SendNewsLetter() { _userMailer.NewsLetter().Send(); return View(); } and in userMailer class: public virtual MvcMailMessage NewsLetter(string userEmail) { //ViewBag.Data = someObject; return Populate(x => { x.Subject = "NewsLetter"; x.ViewName = "NewsLetter"; x.To.Add("hello@mydomain.mobi"); x.Bcc.Add(userEmail); }); } I add submitted newsletter emails to bcc. but when I send it I encounter this issue: Bad

How to use MVCMailer without breaking my service layer?

北城余情 提交于 2019-12-09 09:32:23
问题 I am looking into using MVcMailer to make nicer emails. However one thing that I am unsure is how to organize the code. I currently have 2 projects. One for mvc and one for my repos and service layers. my 2nd project has no knowledge of MVC and I would like to keep it that way. I am thinking that my smtp code would go into a service layer or wrapper and then I would call it up from other service layers when I need to send emails out. So where does the MVC mailer fit in? Do I generate the body

McvMailer doesn't see views

我们两清 提交于 2019-12-08 12:11:25
问题 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 = "_Layout"; } public virtual MvcMailMessage Invitation() { //ViewBag.Data = someObject; var msg = Populate(x => { x.Subject = Labels.Invitation; x.ViewName = "Invitation"; x.From = new MailAddress("xxx@gmail.com"); x.To.Add("yyy@gmail.com"); }); return msg; } } //mvc

Does MvcMailer SendAsync block a ASP.NET MVC Request?

倾然丶 夕夏残阳落幕 提交于 2019-12-07 06:44:49
问题 Does anyone know if the MvcMailer SendAsync method in SmtpClientWrapper blocks a ASP.NET MVC Request? Looking at the MvcMailer wiki and the code I would say yes. So I would still need to use something like WebBackgrounder as disussed here for a safe and truly asynchronous mail send in my MVC app? I'm looking for a definitive answer thanks. 回答1: After downloading MvcMailer and running my own tests I can confirm that SendAsync does block a ASP.NET request until completion. Microsoft confirms

Value does not fall within the expected range error

限于喜欢 提交于 2019-12-06 04:48:55
问题 I'm developing an ASP.Net MVC 4 application. I have a module that sends out the invoice in an email (using MVCMailer) for some reason at I get the error: Value does not fall within the expected range If I step through the code it works without any error but as soon as I just run it it gives me that error. The section producing the error is: return Populate(x => { x.From = new System.Net.Mail.MailAddress("Sales@Scheduler.com", "Scheduler"); x.Subject = System.Configuration.ConfigurationManager

sending multiple emails with mvcmailer

邮差的信 提交于 2019-12-05 17:22:51
Im looking to use MVCMailer to send emails using asp.net mvc 3 with razor. Also mentioned by ScottHa It looks fairly straight forward, however i'm confused as to how I would send batch emails eg like a newsletter to a list of users. do i create a loop around this? public virtual MailMessage Welcome() { var mailMessage = new MailMessage{Subject = "Welcome to MvcMailer"}; mailMessage.To.Add("sohan39@example.com"); ViewBag.Name = "Sohan"; PopulateBody(mailMessage, viewName: "Welcome"); return mailMessage; } can someone explain? thanks Unfortunately because each email message is personalized, I

Value does not fall within the expected range error

烂漫一生 提交于 2019-12-04 10:16:34
I'm developing an ASP.Net MVC 4 application. I have a module that sends out the invoice in an email (using MVCMailer ) for some reason at I get the error: Value does not fall within the expected range If I step through the code it works without any error but as soon as I just run it it gives me that error. The section producing the error is: return Populate(x => { x.From = new System.Net.Mail.MailAddress("Sales@Scheduler.com", "Scheduler"); x.Subject = System.Configuration.ConfigurationManager.AppSettings["SiteName"].ToString() + " Inovice #" + (invoice.invoiceID + 1000).ToString() + " (" +