Пример #1
0
        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
 static extern int MAPISendMail(IntPtr sess, IntPtr hwnd, MapiMessage message, int flg, int rsv);