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

资源简介


资源截图

代码片段和文件信息

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

namespace Ex419
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender EventArgs e)
        {
            OpenFileDialog open = new OpenFileDialog();//创建打开文件对话框对象
            if (open.ShowDialog() == DialogResult.OK)
            {
                this.txtAttach.Text = open.FileName.ToString();//获取文件
            }
        }

        private void button1_Click(object sender EventArgs e)
        {
            try
  

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-06-21 17:16  Ex419\
     文件         905  2013-06-21 17:16  Ex419.sln
     目录           0  2013-06-21 17:16  Ex419\bin\
     目录           0  2013-06-21 17:27  Ex419\bin\Debug\
     文件       12800  2013-06-21 17:27  Ex419\bin\Debug\Ex419.exe
     文件       24064  2013-06-21 17:27  Ex419\bin\Debug\Ex419.pdb
     文件       21464  2013-06-21 17:17  Ex419\bin\Debug\Ex419.vshost.exe
     文件         490  2012-06-02 22:34  Ex419\bin\Debug\Ex419.vshost.exe.manifest
     文件        3945  2013-06-21 17:16  Ex419\Ex419.csproj
     文件        2227  2013-06-21 17:36  Ex419\Form1.cs
     文件       11529  2009-10-03 23:20  Ex419\Form1.Designer.cs
     文件        5814  2009-10-03 23:20  Ex419\Form1.resx
     目录           0  2013-06-21 17:16  Ex419\obj\
     目录           0  2013-06-21 17:27  Ex419\obj\Debug\
     文件        6928  2013-06-21 17:16  Ex419\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件         765  2013-06-21 17:27  Ex419\obj\Debug\Ex419.csproj.FileListAbsolute.txt
     文件         847  2013-06-21 17:27  Ex419\obj\Debug\Ex419.csproj.GenerateResource.Cache
     文件       12800  2013-06-21 17:27  Ex419\obj\Debug\Ex419.exe
     文件         180  2013-06-21 17:27  Ex419\obj\Debug\Ex419.Form1.resources
     文件       24064  2013-06-21 17:27  Ex419\obj\Debug\Ex419.pdb
     文件         180  2013-06-21 17:27  Ex419\obj\Debug\Ex419.Properties.Resources.resources
     目录           0  2013-06-21 17:16  Ex419\obj\Debug\TempPE\
     文件        4608  2013-06-21 17:16  Ex419\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
     文件         523  2012-05-17 08:39  Ex419\Program.cs
     目录           0  2012-05-10 17:11  Ex419\Properties\
     文件        1342  2009-10-03 21:59  Ex419\Properties\AssemblyInfo.cs
     文件        2850  2013-06-21 17:16  Ex419\Properties\Resources.Designer.cs
     文件        5612  2009-10-03 21:59  Ex419\Properties\Resources.resx
     文件        1105  2013-06-21 17:16  Ex419\Properties\Settings.Designer.cs
     文件         249  2009-10-03 21:59  Ex419\Properties\Settings.settings

评论

共有 条评论