• 大小: 0.16M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 邮件  实例  C#  发送  

资源简介

C#发送邮件实例

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Net;
using System.Net.Mail;
using System.Text;
using System.Threading;
using System.Windows.Forms;

namespace SendEmail
{
    public partial class FrmMain : Form
    {
        public FrmMain()
        {
            InitializeComponent();
        }

        private void btnSend_Click(object sender EventArgs e)
        {
            string senderEmail = txtSenderEmail.Text.Trim();
            string emailBoxPwd = txtEmailBoxPwd.Text.Trim();
            string senderName = txtSenderName.Text.Trim();
            string emailtitle = txtEmailtitle.Text.Trim();
            string emailContent = txtEmailContent.Text.Trim()

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ..A..H.     43520  2017-11-11 13:43  SendEmail\.vs\SendEmail\v15\.suo

     文件          0  2017-11-11 13:42  SendEmail\.vs\SendEmail\v15\Server\sqlite3\db.lock

     文件     561152  2017-11-11 13:43  SendEmail\.vs\SendEmail\v15\Server\sqlite3\storage.ide

     文件      11264  2017-10-04 21:01  SendEmail\SendEmail\bin\Release\SendEmail.exe

     文件      22016  2017-10-04 21:01  SendEmail\SendEmail\bin\Release\SendEmail.pdb

     文件       2512  2017-11-11 13:43  SendEmail\SendEmail\FrmMain.cs

     文件       8699  2017-11-11 13:43  SendEmail\SendEmail\FrmMain.Designer.cs

     文件       5817  2017-11-11 13:43  SendEmail\SendEmail\FrmMain.resx

     文件         42  2017-10-04 21:01  SendEmail\SendEmail\obj\Release\CoreCompileInputs.cache

     文件       1452  2017-11-11 13:43  SendEmail\SendEmail\obj\Release\DesignTimeResolveAssemblyReferences.cache

     文件       6831  2017-11-11 13:42  SendEmail\SendEmail\obj\Release\DesignTimeResolveAssemblyReferencesInput.cache

     文件         42  2017-11-11 13:42  SendEmail\SendEmail\obj\Release\SendEmail.csproj.CoreCompileInputs.cache

     文件        480  2017-10-04 21:01  SendEmail\SendEmail\obj\Release\SendEmail.csproj.FileListAbsolute.txt

     文件       1014  2017-10-04 21:01  SendEmail\SendEmail\obj\Release\SendEmail.csproj.GenerateResource.Cache

     文件      11264  2017-10-04 21:01  SendEmail\SendEmail\obj\Release\SendEmail.exe

     文件        180  2017-10-04 21:01  SendEmail\SendEmail\obj\Release\SendEmail.FrmMain.resources

     文件      22016  2017-10-04 21:01  SendEmail\SendEmail\obj\Release\SendEmail.pdb

     文件        180  2017-10-04 21:01  SendEmail\SendEmail\obj\Release\SendEmail.Properties.Resources.resources

     文件        492  2017-08-09 12:00  SendEmail\SendEmail\Program.cs

     文件       1316  2017-08-09 12:00  SendEmail\SendEmail\Properties\AssemblyInfo.cs

     文件       2831  2017-08-09 12:00  SendEmail\SendEmail\Properties\Resources.Designer.cs

     文件       5612  2017-08-09 12:00  SendEmail\SendEmail\Properties\Resources.resx

     文件       1096  2017-08-09 12:00  SendEmail\SendEmail\Properties\Settings.Designer.cs

     文件        249  2017-08-09 12:00  SendEmail\SendEmail\Properties\Settings.settings

     文件       3391  2017-08-09 12:23  SendEmail\SendEmail\SendEmail.csproj

     文件        995  2017-08-09 12:00  SendEmail\SendEmail.sln

     目录          0  2017-11-11 13:43  SendEmail\.vs\SendEmail\v15\Server\sqlite3

     目录          0  2017-11-11 13:42  SendEmail\.vs\SendEmail\v15\Server

     目录          0  2017-11-11 13:42  SendEmail\SendEmail\obj\Release\TempPE

     目录          0  2017-11-11 13:42  SendEmail\.vs\SendEmail\v15

............此处省略12个文件信息

评论

共有 条评论