如何添加文本框和按钮到电子邮件正文 [英] How Do I Add Textbox And Buttons To Email Body

查看:747
本文介绍了如何添加文本框和按钮到电子邮件正文的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想向用户发送一封电子邮件,其中应包含一个简单的反馈表(包括文本框和按钮),用户应该可以写下他的反馈并发送。任何人都可以帮我这个

Hi, I want to send an email to a user which should include a simple feedback form(Which includes textboxes and botton), And user should be able to write his feedback and send. Can anyone please help me on this

推荐答案

为了向电子邮件正文添加控件,你必须设置MailMessage.IsBodyHtml = true。正文必须是HTML格式。



https://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage.isbodyhtml%28v=vs.110%29 .aspx [ ^ ]



在谷歌搜索发送HTML电子邮件VB以获取更多参考资料。
In order to add controls to email body, you have to set MailMessage.IsBodyHtml = true. The body has to be in HTML format.

https://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage.isbodyhtml%28v=vs.110%29.aspx[^]

Search for 'send HTML email VB' in google for more references.


你不会让这个工作,邮件客户端将剥离你的元素和javascript,或者充其量使客户端跳过各种环节以使其工作。在网站上有一个反馈表,并通过电子邮件将链接和一些令牌发送给他们,让您将用户与他们发送的反馈联系起来。



或者如果这是一个内部网络,您使用的是Exchange和Outlook,然后您可以使用自定义Outlook表单。
You're not going to get this working, mail clients are going to strip your elements and javascript, or at best make the client jump through various hoops to get it working. Have a feedback form on a website and email them the link along with some token that lets you tie that user to the feedback they send.

Or if this is an internal network and you're using Exchange and Outlook then you might be able to use a custom Outlook Form.


这篇关于如何添加文本框和按钮到电子邮件正文的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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