Exemple #1
0
        public virtual void StartMail()
        {
            if (_To.Count == 0) _To.Add("");

            SMapiMessage lMessage = new SMapiMessage();

            lMessage.subject = Subject;
            lMessage.noteText = Body;
            lMessage.recips = getRecipients(out lMessage.recipCount);
            lMessage.files = Attachments.getAttachments(out lMessage.fileCount);

            MAPISendMail(new IntPtr(0), new IntPtr(0), lMessage, MAPI_DIALOG, 0);
        }
Exemple #2
0
 public static extern int MAPISendMail(
     IntPtr aSession,
     IntPtr aHandle,
     SMapiMessage aMessage,
     int aFlags,
     int aReserved
     );