单击按钮通过邮件发送winform [英] sending winform through mail on button click

查看:96
本文介绍了单击按钮通过邮件发送winform的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

它们是Winform上的一个按钮和文本框.我想将Winform发送到单击按钮时文本框中给定的地址.

Their is a button and textbox on my Winform .I want to send the winform to the address given in textbox on button click.

推荐答案

可以"不能通过电子邮件将Windows表单真正发送给任何人-通常,大多数电子邮件服务都具有适当的过滤器,以防止可执行文件被传递,即使您通过了该文件,也无法保证用户可以使用它.想到这一点,您可以在PC,Mac,iPad,Android平板电脑,电话,冰箱上检查电子邮件-并且其中只有一个可以打开WinForm对象.

相反,您可以将其发送为HTML表单或页面-这非常简单,并且更有可能在大多数系统上使用.

这里有一种可以帮助您发送的方法:用C#发送带有或不带有附件的电子邮件:通用例程. [
You can''t really email a windows form to anyone - generally most email services have filters in place to prevent executable files from being delivered, and even if you did get it through, there is no guarantee that the user can use it. THink about it, you can check your email on a PC, a Mac, an iPad, an Android tablet, a phone, a fridge - and only one of these can open a WinForm object.

Instead, look at sending it as an HTML form or page - that is pretty simple and more likely to work on most systems.

There is a method here that will help you send it: Sending an Email in C# with or without attachments: generic routine.[^]


这篇关于单击按钮通过邮件发送winform的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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