如何在电子邮件中设置按钮? [英] How to have a button in email?

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

问题描述

我有一个程序,然后会向用户发送电子邮件.我在电子邮件中使用html,并且在电子邮件中需要有一个按钮和一个文本框.该电子邮件假定允许用户在文本框中键入内容,然后单击按钮以执行sql. 与文字信息.我尝试了一下,但该按钮不起作用.任何想法如何做到这一点?我在Vistual Studio环境中使用C#进行所有操作.

I have a program then would send out an email to the user. I use html in the email, and I would need to have a button and a textbox in the email. The email supposes to let the user type in something in the textbox, then click the button to execute sql with the text information. I try that but the button would not work. Any idea how to do that? I do everything with C# in vistual studio environment.

推荐答案

您无法执行电子邮件本身内所描述的操作.相反,您可以做的是,将包含所需功能的网页分开,然后将指向该页面的链接通过电子邮件发送给用户.

You cannot do the things that you are describing within the body of the e-mail itself. What you could do instead is you could separate webpage containing the functionality that you need and then e-mail a link to that page to the user.

那样,尽管用户是出于善意,但用户仍然可以通过电子邮件执行您想要的操作.

That way, after the user would still be able to do what you want through an e-mail, albeit inderectly.


这篇关于如何在电子邮件中设置按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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