Controls->Countni++){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::MAPImapimapi.AddRecipientTo("sst@fcssystem.com")mapi.AddAttachment(Filename)mapi.SendMailPopup("FCSSystemOrder","PleaseWriteYourDataHere")-IMDN开发者社群-imdn.cn"> Controls->Countni++){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::MAPImapimapi.AddRecipientTo("sst@fcssystem.com")mapi.AddAttachment(Filename)mapi.SendMailPopup("FCSSystemOrder","PleaseWriteYourDataHere") - IMDN开发者社群-imdn.cn">
登录
首页 » Windows开发 » 这一代码发送电子邮件的附件很容易。

这一代码发送电子邮件的附件很容易。

于 2022-01-26 发布 文件大小:45.55 kB
0 149
下载积分: 2 下载次数: 1

代码说明:

This 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 个回复

  • 著名的TCPMP,现在已经不再源,这是商业化之前源码,很难得...
    著名的TCPMP,现在已经不再开源,这是商业化之前源码,很难得-Famous TCPMP, is no longer open source, which is before the commercial source, it is difficult to get
    2022-03-23 03:57:03下载
    积分:1
  • Windows ce operating system for memory management used in memory allocation, rec...
    对windows ce操作系统的存储管理采用的内存分配,回收,虚拟内存映像,调页等机制作深入的探讨-Windows ce operating system for memory management used in memory allocation, recovery, virtual memory mapping, paging and other mechanisms to explore deeper into the
    2022-08-16 02:34:27下载
    积分:1
  • 一个组态王机械手控制的实例教程。版本为6.53
    一个组态王机械手控制的实例教程。版本为6.53-A robot controlled KingView tutorial examples. Version 6.53
    2023-02-28 06:00:03下载
    积分:1
  • asouce code to realize one game
    贪吃蛇游戏源代码,可在VS2005环境下编译运行,适合初学者学习-asouce code to realize one game
    2022-09-01 01:10:03下载
    积分:1
  • heelo
    C程序开发经典实例之1 【程序1】 题目:有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少? 1.程序分析:可填在百位、十位、个位的数字都是1、2、3、4。组成所有的排列后再去掉不满足条件的排列。 2.程序源代码:-heelo
    2022-03-17 10:48:50下载
    积分:1
  • one on the use of C realization of the machine's case. Discussion of the gen...
    一个关于用 C++ 实现本机事件的问题。讨论了一般意义上的事件并示范了如何用接口为你的类定义事件处理器,事件的处理必须在客户机实现。-one on the use of C realization of the machine"s case. Discussion of the general sense of the incident and demonstrated how to use interface for your class definitions incident processor, the handling of the incident must achieve the client.
    2022-11-10 02:15:03下载
    积分:1
  • project for the protection of natural forest resources GIS information managemen...
    天然林资源保护工程GIS信息管理系统(以下简称《天保GIS系统》)是以基层林业单位林业技术管理的特点,会聚林业政策、林业技术、天保技术、计算机等方面的专家、管理人员与技术人员多方探讨、论证,以森林资源管理模式为基础、以天然林资源保护为核心的基于3S技术的天然林资源保护工程信息管理系统(以下简称天保GIS信息管理系统)。 本系统能把天保工程管理的各类动态、静态的数据与地理信息有机地结合起来形成空间数据库,并利用网络技术、数字化三维技术和多媒体技术等,来对天然林资源保护工程以及森林资源管理过程中的数据进行采集、存储、编辑、转换、分析,并能根据工作需要方便快捷地输出各种地理图形及管理表格。 系统的开发主要针对天然林保护工程的管理需要,也可用于森林资源管理下的森林资源监测、护林防火、森林病虫害、森林资源建档、天保工程档案管理以及森林规划建设等工程项目等方面。本系统的开发成功,标志着我省数字林业、数字化天保向前迈出了坚实的一步,为实现林业科学管理、科学决策打下了扎实的基础。 -project for the protection of natural forest resources GIS information management system (hereinafter referred to as "Tianbao GIS") is based layer forestry units forestry technology management features, the convergence of forestry policy, Forestry, Natural Forest Protection technology, computers and other experts in the field management and technical staff to explore various, demonstration, forest resource management model as the basis, to protect forest resources for core-based 3S technology project for the protection of natural forest r
    2022-01-31 23:40:27下载
    积分:1
  • 在EVC4.0环境下,基于ART2153数据采集卡的简单实现数据实时的采集功能...
    在EVC4.0开发环境下,基于ART2153数据采集卡的简单实现数据实时的采集功能-The EVC4.0 development environment, based on a simple data acquisition card ART2153 to achieve real-time data collection capabilities
    2022-02-14 20:13:30下载
    积分:1
  • 控制计算机音量的简单的例子
    控制计算机音量的简单的例子-control of the computer sound simple example
    2023-09-01 20:50:02下载
    积分:1
  • 旋转裁剪图片的头文件,实现图片任意角度的旋转裁剪功能
    旋转裁剪图片的头文件,实现图片任意角度的旋转裁剪功能-Crop rotation picture header file, to achieve picture at any angle of rotation cropping feature
    2023-01-23 16:30:04下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载