当我单击按钮时如何发送电子邮件

问题描述:

请告诉我用C#编写的代码,我不了解有关设置SMPT服务器的信息...

Please tell the code in C# and i dont have knowledge about setting up the SMPT sever.....

此处提供了完整的提示代码:使用C#发送带有或不带有附件的电子邮件:通用例程. [ ^ ]
There is a tip here with full source code: Sending an Email in C# with or without attachments: generic routine.[^]


引用此链接:

如何在C#窗口应用程序中发送电子邮件? /a> [ ^ ]
Refer this link:

How to Send Email in C# Window Application?[^]


尝试一下:

< pre lang ="c#"> Response.Redirect("mailto:abc@gmail.com");</pre>

这将打开您的默认邮件应用程序...

否则,您也可以使用以下代码:

< pre lang ="HTML">< a href ="mailto:abc@gmail.com">给我发邮件</a></pre>

一切顺利...
Try this:

<pre lang="c#">Response.Redirect("mailto:abc@gmail.com");</pre>

this will open your default mailing application...

Or else you can also use this:

<pre lang="HTML"><a href="mailto:abc@gmail.com">Mail Me</a></pre>

all the best...