使用MVC 3发送丰富的电子邮件 [英] Sending Rich Emails using MVC 3

查看:82
本文介绍了使用MVC 3发送丰富的电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

-如何从MVC 3应用程序发送带有嵌入式图片的电子邮件?

想象一下在您收到激活电子邮件的网站上的注册过程,并且该电子邮件包含接收电子邮件的网站的徽标.

-如何在MVC 3中实现这一目标?

-可以使用Scott Anderson编写的ActionMailer库吗? (肯定的示例)

- How can I send emails with embedded pictures from an MVC 3 application?

Imagine the registration process on a website where you receive an activation email, and that email contains the logo of the website from which you received the email.

- How do you accomplish that in MVC 3?

- Can the ActionMailer library written by Scott Anderson be used? (Example in positive case)

推荐答案

dzgsfdgfdhg
kjhkljkl
opkjpl;''; l
dzgsfdgfdhg
kjhkljkl
opkjpl;'';l


glib的答案几乎与从ASP.NET中获得的答案完全一样.该视图在控制器上调用一个方法,控制器与对象模型进行交互(这些代码具有不同的位),然后对象模型发送电子邮件.

我不知道您询问的图书馆,但 [ ^ ]看起来充满希望

您是否有使其工作正常的问题?
The glib answer is almost exactly how you would from an ASP.NET. The view calls a method on the controller , the controller interacts with the object model (these sre the bits that are different) then the object model sends the e-mail.

I don''t know about the library you asked about, but this[^] looks hopeful.

Do you have specific problem getting it to work?


这篇关于使用MVC 3发送丰富的电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆