如何在Asp.Net/C#.Net中发送电子邮件 [英] How to send email in Asp.Net/C#.Net

查看:86
本文介绍了如何在Asp.Net/C#.Net中发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我需要代码将邮件发送到不同的邮件ID,如yahoo id,gmail id等。每当我点击一个按钮,它需要发送邮件到To:field中指定的特定ID


我的页面就像是

To:txtto


主题:txtsubject


身体




发送按钮

解决方案

尝试探索System.Web.Mail。这使得即时生成电子邮件非常简单。


大家好,我需要代码将邮件发送到不同的邮件ID,例如yahoo id ,gmail id等。当我点击一个按钮时,它需要发送一封邮件到To:中指定的特定id:字段


我的页面就像是

To :txtto


主题:txtsubject


身体





发送按钮


你可以给我代码吗?



你可以给我代码吗?



不,但这可以......

http://msdn.microsoft.com/library/de...classtopic.asp


Hi all, i need code for sending a mail to different mail ids like a yahoo id ,gmail id etc.whenever i click a button it needs to send a mail to that particular id specified in To: field

My page is like
To: txtto

Subject:txtsubject

Body





send-button

解决方案

Try exploring System.Web.Mail. That makes it pretty simple to generate emails on the fly.

Hi all, i need code for sending a mail to different mail ids like a yahoo id ,gmail id etc.whenever i click a button it needs to send a mail to that particular id specified in To: field

My page is like
To: txtto

Subject:txtsubject

Body





send-button


can u give me code ?


can u give me code ?

No, but this can...

http://msdn.microsoft.com/library/de...classtopic.asp


这篇关于如何在Asp.Net/C#.Net中发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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