• 大小: 0.19M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-24
  • 语言: C#
  • 标签:

资源简介


资源截图

代码片段和文件信息

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;
using System.Net.Mail;
using System.Text.Regularexpressions;

namespace SendEmail
{
    public partial class frmSend : Form
    {
        public frmSend()
        {
            InitializeComponent();
        }
        //对邮件内容进行编码
        private static string base64Encode(string str)
        {
            return Convert.Tobase64String(Encoding.UTF8.GetBytes(str));
        }

        private void AddFile(string strFileMailMessage message)
        {
            //为要发送的邮件创建附件信息
            Attachment myAttachment = new Attachment(strFile System.Net.Mime.MediaTypeNames.Application.Octet);
            //为附件添加时间信息
            System.Net.Mime.ContentDisposition disposition = myAttachment.ContentDisposition;
            disposition.CreationDate = System.IO.File.

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         917  2009-02-10 15:47  sj\01\SendEmail\SendEmail.sln
     文件       31232  2009-02-10 15:51  sj\01\SendEmail\SendEmail.suo
     文件        4827  2009-02-10 15:51  sj\01\SendEmail\SendEmail\frmSend.cs
     文件       12272  2009-02-10 15:51  sj\01\SendEmail\SendEmail\frmSend.designer.cs
     文件        6016  2009-02-10 15:51  sj\01\SendEmail\SendEmail\frmSend.resx
     文件         492  2009-02-10 15:49  sj\01\SendEmail\SendEmail\Program.cs
     文件        3774  2009-02-10 15:49  sj\01\SendEmail\SendEmail\SendEmail.csproj
     文件       13824  2009-02-10 15:51  sj\01\SendEmail\SendEmail\bin\Debug\SendEmail.exe
     文件       26112  2009-02-10 15:51  sj\01\SendEmail\SendEmail\bin\Debug\SendEmail.pdb
     文件       14328  2009-02-10 15:50  sj\01\SendEmail\SendEmail\bin\Debug\SendEmail.vshost.exe
     文件         748  2009-02-10 15:51  sj\01\SendEmail\SendEmail\obj\Debug\SendEmail.csproj.FileListAbsolute.txt
     文件         849  2009-02-10 15:51  sj\01\SendEmail\SendEmail\obj\Debug\SendEmail.csproj.GenerateResource.Cache
     文件       13824  2009-02-10 15:51  sj\01\SendEmail\SendEmail\obj\Debug\SendEmail.exe
     文件         180  2009-02-10 15:51  sj\01\SendEmail\SendEmail\obj\Debug\SendEmail.frmSend.resources
     文件       26112  2009-02-10 15:51  sj\01\SendEmail\SendEmail\obj\Debug\SendEmail.pdb
     文件         180  2009-02-10 15:51  sj\01\SendEmail\SendEmail\obj\Debug\SendEmail.Properties.Resources.resources
     文件        1374  2009-02-10 15:47  sj\01\SendEmail\SendEmail\Properties\AssemblyInfo.cs
     文件        2868  2009-02-10 15:47  sj\01\SendEmail\SendEmail\Properties\Resources.Designer.cs
     文件        5612  2009-02-10 15:47  sj\01\SendEmail\SendEmail\Properties\Resources.resx
     文件        1094  2009-02-10 15:47  sj\01\SendEmail\SendEmail\Properties\Settings.Designer.cs
     文件         249  2009-02-10 15:47  sj\01\SendEmail\SendEmail\Properties\Settings.settings
     文件         926  2009-02-10 15:51  sj\02\ReceiveEmail\ReceiveEmail.sln
     文件       33280  2009-02-10 16:00  sj\02\ReceiveEmail\ReceiveEmail.suo
     文件        6842  2009-02-10 15:56  sj\02\ReceiveEmail\ReceiveEmail\frmReceive.cs
     文件       12604  2009-02-10 15:56  sj\02\ReceiveEmail\ReceiveEmail\frmReceive.designer.cs
     文件       11520  2009-02-10 15:56  sj\02\ReceiveEmail\ReceiveEmail\frmReceive.resx
     文件         498  2009-02-10 15:55  sj\02\ReceiveEmail\ReceiveEmail\Program.cs
     文件        3900  2009-02-10 15:54  sj\02\ReceiveEmail\ReceiveEmail\ReceiveEmail.csproj
     文件       18944  2009-02-10 15:56  sj\02\ReceiveEmail\ReceiveEmail\bin\Debug\ReceiveEmail.exe
     文件       24064  2009-02-10 15:56  sj\02\ReceiveEmail\ReceiveEmail\bin\Debug\ReceiveEmail.pdb
     文件       14328  2009-02-10 15:56  sj\02\ReceiveEmail\ReceiveEmail\bin\Debug\ReceiveEmail.vshost.exe
............此处省略49个文件信息

评论

共有 条评论