使用MvcMailer在发送时指定收件人电子邮件地址 [英] specify recipient email address at send time using MvcMailer

查看:77
本文介绍了使用MvcMailer在发送时指定收件人电子邮件地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用MvcMailer从我的MVC应用程序发送电子邮件。我不想指定收件人('TO')地址,而是希望让发件人手动输入。这可能吗?



感谢您的帮助。

I'm using MvcMailer to send out email from my MVC application. I don't want to specify the recipient ('TO') address but instead I would like to have the sender to manually enter it in. Is this possible?

Thanks for all the help.

推荐答案

请参阅本手册:https://github.com/smsohan/MvcMailer/wiki/MvcMailer-Step-by-Step-Guide [ ^ ]。



我认为很明显,任何邮件头都是硬编码字符串的地方都可以用从某个控件获取数据的函数,或来自表单页面的HTTP请求或任何其他来源替换。数据。



-SA
Please see, for example, this manual: https://github.com/smsohan/MvcMailer/wiki/MvcMailer-Step-by-Step-Guide[^].

I think it should be obvious that any place where any mail header is a hard-coded string can be replaced with the function taking the data from some control, or HTTP request coming from a form page, or any other source of data.

—SA


这篇关于使用MvcMailer在发送时指定收件人电子邮件地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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