zoukankan      html  css  js  c++  java
  • Outlook发信

    using System;
    using Microsoft.Office.Interop.Outlook;

    namespace ConsoleApplication1 {
        internal class Program2 {
            private static void Main() {
                var app = new ApplicationClass();
                var mailItemClass = app.CreateItem(OlItemType.olMailItem) as MailItem;
                mailItemClass.To = "rickie.du@sap.com";
                mailItemClass.Subject = "Send File As Email Attachment";
                mailItemClass.Attachments.Add("c:\\a.txt", Type.Missing, Type.Missing, Type.Missing);
                mailItemClass.Send();
                Console.WriteLine("COOL");
            }
        }
    }

  • 相关阅读:
    CF1091E
    jzoj5703
    CF1109F
    杂题
    CF1194F
    杂题
    个人作业1-数组(二维数组)
    第三周-学习进度条
    构建之法阅读笔记02
    个人作业1-数组(续1)
  • 原文地址:https://www.cnblogs.com/rickiedu/p/1729936.html
Copyright © 2011-2022 走看看