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

资源简介

邮件发送

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using System.Net.Mail;
using System.Net.Mime;
using System.Net;
using System.IO;

namespace SendEmail
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            this.ImeMode = ImeMode.Hangul;
        }

        //窗体的Load事件
        private void Form1_Load(object sender EventArgs e)
        {
            //添加俩个smpt服务器的名称
            cmbBoxSMTP.Items.Add(“smtp.163.com“);
            cmbBoxSMTP.Items.Add(“smtp.gmail.com“);
            //设置为下拉列表
            cmbBoxSMTP.DropDownstyle = ComboBoxstyle.DropDownList;
            //默认选中第一个选项

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-07-03 17:44  SendEmail\
     文件         996  2016-07-03 17:20  SendEmail.sln
     目录           0  2016-01-27 11:23  SendEmail\bin\
     目录           0  2016-07-03 17:21  SendEmail\bin\Debug\
     文件       15872  2016-07-03 17:44  SendEmail\bin\Debug\SendEmail.exe
     文件       38400  2016-07-03 17:44  SendEmail\bin\Debug\SendEmail.pdb
     文件       21656  2016-07-03 17:47  SendEmail\bin\Debug\SendEmail.vshost.exe
     文件         490  2012-06-02 22:34  SendEmail\bin\Debug\SendEmail.vshost.exe.manifest
     文件        6012  2016-07-03 17:44  SendEmail\Form1.cs
     文件       15857  2015-10-05 17:19  SendEmail\Form1.Designer.cs
     文件        5814  2015-10-05 17:19  SendEmail\Form1.resx
     目录           0  2016-01-27 11:23  SendEmail\obj\
     目录           0  2016-07-03 17:44  SendEmail\obj\Debug\
     文件        6142  2016-07-03 17:19  SendEmail\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     目录           0  2008-11-29 18:51  SendEmail\obj\Debug\Refactor\
     文件         906  2016-07-03 17:47  SendEmail\obj\Debug\SendEmail.csproj.FileListAbsolute.txt
     文件         847  2016-07-03 17:44  SendEmail\obj\Debug\SendEmail.csproj.GenerateResource.Cache
     文件        1341  2016-07-03 17:32  SendEmail\obj\Debug\SendEmail.csprojResolveAssemblyReference.cache
     文件       15872  2016-07-03 17:44  SendEmail\obj\Debug\SendEmail.exe
     文件         180  2016-07-03 17:32  SendEmail\obj\Debug\SendEmail.Form1.resources
     文件       38400  2016-07-03 17:44  SendEmail\obj\Debug\SendEmail.pdb
     文件         180  2016-07-03 17:32  SendEmail\obj\Debug\SendEmail.Properties.Resources.resources
     目录           0  2016-07-03 17:20  SendEmail\obj\Debug\TempPE\
     文件        4608  2016-07-03 17:20  SendEmail\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
     文件         282  2008-11-30 08:32  SendEmail\obj\SendEmail.csproj.FileList.txt
     文件         920  2016-04-13 19:53  SendEmail\obj\SendEmail.csproj.FileListAbsolute.txt
     文件         468  2008-11-29 17:53  SendEmail\Program.cs
     目录           0  2016-01-27 11:23  SendEmail\Properties\
     文件        1172  2008-11-29 17:53  SendEmail\Properties\AssemblyInfo.cs
     文件        2858  2016-07-03 17:19  SendEmail\Properties\Resources.Designer.cs
     文件        5612  2008-11-29 17:53  SendEmail\Properties\Resources.resx
............此处省略4个文件信息

评论

共有 条评论