如何从.aspx页发送电子邮件? [英] How to Send email from .aspx page?
本文介绍了如何从.aspx页发送电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在.aspx页面上使用了文本框和一个提交按钮,并且我想在Button click上通过电子邮件发送所有这些文本框的数据.
因此,请告诉我解决方案.....
i used text boxes and a submit button on my .aspx page and i want to email the data of all these text boxes on Button click.
so please tell me the solution.....
推荐答案
此处是发送带有附件的电子邮件的示例代码
http://hemantrautela.blogspot.in/2012/09/advance-email- sending-codecnet-with.html [ ^ ]
here is sample code to sending email with attachment
http://hemantrautela.blogspot.in/2012/09/advance-email-sending-codecnet-with.html[^]
解决方案很多,但您需要根据需要找到合适的解决方案.
尝试 Google [ CodeProject 上尝试类似的答案[ ^ ]
您可以尝试 ^ ]文章也是如此.
Solutions are many but you need to find appropriate as your requirement.
Try on Google[^] search.
Then you can try similar answers on CodeProject[^]
And you can try CodeProject[^] articles too on same.
System.Net.Mail.SmtpClient? [
这篇关于如何从.aspx页发送电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文