在C#.Net中创建控制台应用程序

编程入门 行业动态 更新时间:2024-10-28 05:26:25
本文介绍了在C#.Net中创建控制台应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我是COnsole应用程序的新手.我从Google搜索到的几篇文章的帮助下创建了一个控制台应用程序,每篇文章说的是不同的方法. 我正在尝试创建一个可以发送电子邮件的新控制台应用程序. 任何人都可以通过链接开始向我提出建议.

Hi, I am new to the COnsole applications .I created a console application with the help of few articles i searched from google and each article says a different approach. I am trying to create a new console application that can send an e-mail. Could anyone please suggest me with links where to get started.

推荐答案

您好, 您可以参考以下链接 谷歌搜索 [ ] Hi, you can Refer Following Links Googling[]

通过任何应用程序发送电子邮件都不难. 包括在您的课程中: sending email form any application is not hard. include in your class: using System.Net.Mail;

使用MailMessage 对象 [ ^ ]创建电子邮件并使用 SmtpClient 对象 [ ^ ]通过电子邮件发送. 此外,继续使用Google查找此 [ ^ ],并在页面. 祝您编码愉快!

use MailMessage object[^] to create the email and use SmtpClient object[^] to send via email. Furthermore keep using Google to find this[^] and use the example in the page. Have fun coding!

请点击链接,如果需要进一步的帮助,请告诉我 msdn.microsoft/en-us/library/t7980f5h(vs .71).aspx [ ^ ] http: //weblogs.asp/ashicmahtab/archive/2009/04/28/how-to-send-emails-from-net-example-uses-gmail-smtp.aspx [ ^ ] Please follow the link and let me know if you need further help msdn.microsoft/en-us/library/t7980f5h(vs.71).aspx[^] weblogs.asp/ashicmahtab/archive/2009/04/28/how-to-send-emails-from-net-example-uses-gmail-smtp.aspx[^]

更多推荐

在C#.Net中创建控制台应用程序

本文发布于:2023-11-14 13:18:23,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1587314.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控制台   应用程序   Net

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!