コード例 #1
0
ファイル: Mapi.cs プロジェクト: harrygg/LRDetect
        public int SendMail(string fileName)
        {
            MapiMessage msg = new MapiMessage();
            msg.subject = "LR Detect Tool Information";
            msg.noteText = "See the attached file for details.";
            msg.files = GetAttachments(fileName, out msg.fileCount);

            int result = MAPISendMail(new IntPtr(0), new IntPtr(0), msg, 0x00000001 | 0x00000008, 0);
            if (result > 1 || result < 0)
                throw new System.InvalidOperationException();
            return result;
        }
コード例 #2
0
ファイル: Mapi.cs プロジェクト: harrygg/LRDetect
 static extern int MAPISendMail(IntPtr sess, IntPtr hwnd, MapiMessage message, int flg, int rsv);