通过.net应用程序发送电子邮件 [英] Sending an Email via a .net application

查看:78
本文介绍了通过.net应用程序发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好!
请我需要帮助.我有这个小的C#.net应用程序,我想用来发送电子邮件.我一直在尝试搜索互联网,以了解如何在数小时内实现此目标,但没有成功.我得到的全部是我必须使用SMTP服务器,但不包括有关如何在应用程序上访问或配置SMTP服务器访问的详细信息.请有人帮忙.我需要有关如何配置服务器的所有详细信息.我发现我可以使用gmail服务器从我的应用程序发送电子邮件,但是我该如何在我的应用程序上执行此操作.请我提供完整的详细信息,如果要在app.config文件中对其进行配置,则需要所有信息,例如所有必要元素的属性和属性及其说明.我讨厌链接.

Hello!
Please i need help. I have this small C#.net application that i want to use to send an email message. I have been trying to search the internet for how i can achieve this for some hours now but with no success. All that i get is that i have to use SMTP server but details of how to access or configure SMTP server access on my application are not included. Please someone help. I need all the details of how to configure the server. I have discovered that i can use gmail server to send emails from my app but how can i do that on my app. Please i need full details, if its configuring it in the app.config file i need all the info like all necessary elements their properties and attributes and their explanations. I hate links please.

Thank you very much in advance!

推荐答案

参考: ^ ]

..以及更多类似的文章&在 CP搜索中进行质量检查 [ ^ ]
Refer: Send E-Mail from your .NET Application using your GMail Account[^]

..and lot more similar articles & QA on CP Search[^]



有更好的解决方案,这里有一个简单的功能代码,您可以通过它复制粘贴并使用它.
而且您也可以根据需要发送电子邮件附件.

http://hemantrautela.blogspot.in/2012/09/advance-email- sending-codecnet-with.html [ ^ ]
Hi ,
A better solution is there, a simple function code is here by which you can just copy paste and use it.
and by this you can also send email-attachemnt if you want.

http://hemantrautela.blogspot.in/2012/09/advance-email-sending-codecnet-with.html[^]


http://social.msdn.microsoft.com/forums /en/netfxnetcom/thread/a75533eb-131b-4ff3-a3b2-b6df87c25cc8/ [使用以下方法从.NET应用程序发送电子邮件您的GMail帐户 [
http://social.msdn.microsoft.com/forums/en/netfxnetcom/thread/a75533eb-131b-4ff3-a3b2-b6df87c25cc8/[^]
http://social.msdn.microsoft.com/forums/en/netfxnetcom/thread/a75533eb-131b-4ff3-a3b2-b6df87c25cc8/[^]
Send E-Mail from your .NET Application using your GMail Account[^]


这篇关于通过.net应用程序发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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