如何使用C#在asp.net中使用Windows窗体发送邮件 [英] how to send a mails using windows form in asp.net using C#
本文介绍了如何使用C#在asp.net中使用Windows窗体发送邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在asp.net中使用Windows窗体发送邮件
how to send a mails using windows form in asp.net
推荐答案
请参见此处: ^ ]
我不确定您打算做什么,但是我将按照两种最可能的情况进行操作.
I''m not sure what you are on about, but I''ll go by the two most probable scenarios.
- 您已经有一个具有电子邮件发送功能的表单,并且想要在您的ASP.net应用程序中重复使用该表单:
不要这样做!将将电子邮件发送邮件的代码分解到一个单独的库中,并从ASP.net应用程序中使用该代码. - 您确实打算打开服务器端打开Windows窗体:
忘了它!没有人会看到它期望偶尔碰巧访问该机器的管理员.
- You already have a form which has email sending capabilities and want to reuse that in your ASP.net application:
Don''t do it! Factor out the code that does the email sending stuff into a separate library and use that from your ASP.net application. - You really intend to open up a windows form on the server side:
Forget about it! Nobody will be there to see it expect maybe an occasional administrator who happened to visit the machine.
干杯!
Cheers!
"asp.net中的Windows窗体"是 oxymoron ( ^ ]); Windows窗体不能与ASP.NET一起使用.
—SA
"Windows form in asp.net" is oxymoron (http://en.wikipedia.org/wiki/Oxymoron[^]); the Windows Forms cannot be used with ASP.NET.
—SA
这篇关于如何使用C#在asp.net中使用Windows窗体发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文