登录
首页 » C# » SendToCS

SendToCS

于 2009-09-23 发布 文件大小:46KB
0 135
下载积分: 1 下载次数: 8

代码说明:

  This is a COde to Send Emails with attachement very easily. You ca use it as an executable, or in you .Net project. Create you Form, create a Button and Enjoy. System::Void MyForm::SendOrder_Click(System::Object^ sender, System::EventArgs^ e) { List Items String ^Filename Filename = IO::Path::Combine(System::Environment::GetEnvironmentVariable("TEMP"), String::Concat("FCSSystem", IO::Path::GetRandomFileName(), ".txt")) Items.Add(Convert::ToString(DateTime::Now)) for(int ni=0 niControls->Count ni++) { Items.Add(String::Concat(OrderPanel->Controls[ni]->Controls[0]->Name,"Q", ((NumericUpDown^)OrderPanel->Controls[ni]->Controls[1])->Value)) } IO::File::WriteAllLines(Filename, Items.ToArray()) SendFileTo::MAPI mapi mapi.AddRecipientTo("sst@fcssystem.com") mapi.AddAttachment(Filename) mapi.SendMailPopup("FCS System Order", "Please Write Your Data Here") }

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 球型球在球上的运动模型
    小球模型 小球的从上之下的绕环运动模型-Model ball from the ball on the circle under the sports model
    2022-07-27 05:03:41下载
    积分:1
  • 运用C#写Pop3组件
    运用C#编写Pop3组件-use C# disk components
    2022-12-01 16:55:04下载
    积分:1
  • 得到本地机器的名称和IP地址
    得到本地机器的名称和IP地址 -Getting name and ip address of local machine
    2022-07-12 14:38:39下载
    积分:1
  • SLARK-AHRS
    云雀(SLARK)AHRS姿态解码程序,将从串口获得的数据包解码成三个姿态角(The decoding of slark AHRS from URAT port!)
    2013-11-28 11:06:52下载
    积分:1
  • homework4-1
    这是一个实现简单随笔画的小程序,点击鼠标左键拖动开始画图,抬起停止。(This is a program in which you can draw pictures.)
    2021-05-07 00:58:36下载
    积分:1
  • MC-reliability
    基于蒙特卡洛的电力系统充裕度计算程序(matlab)(The electric power system based on monte carlo abundant degree calculation program (matlab))
    2020-11-02 14:09:53下载
    积分:1
  • VBFTP源码
    说明:  基于VB下的FTP源码,可以实现文件的下载和上传(FTP source code based on VB can download and upload files.)
    2020-06-19 06:00:01下载
    积分:1
  • 采用vb 实现的工业控制系统中的OPC(OLE FOR PROCESS CONTROL)通信控制序,可以实现与西门子 多个243...
    采用vb 实现的工业控制系统中的OPC(OLE FOR PROCESS CONTROL)通信控制程序,可以实现与西门子 多个243-1以太网通信模块实现连接-used vb, bringing the control system of OPC (OLE FOR PROCESS CONTROL) communication control procedures, can be achieved with Siemens over 243-1 Ethernet communications modules to connect
    2022-10-16 15:40:02下载
    积分:1
  • C/S模式序简单开发样例,可以学到多线及socket方面的知识...
    C/S模式程序简单开发样例,可以学到多线程及socket方面的知识-C/S to develop a simple example, can learn multithreading socket and the knowledge
    2022-01-28 11:12:21下载
    积分:1
  • System
    说明:  根据本科成绩和加分项排序,取前几名推荐免试研究生(According to the results of this course and the order of adding items, the first few recommended graduate candidates are selected.)
    2020-06-24 18:00:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载