Esempio n. 1
0
        bool AddRecipient(string email, HowTo howTo)
        {
            MapiRecipDesc recipient = new MapiRecipDesc { recipClass = (int)howTo, name = email };

            m_recipients.Add(recipient);

            return true;
        }
Esempio n. 2
0
        bool AddRecipient(string email, HowTo howTo)
        {
            MapiRecipDesc recipient = new MapiRecipDesc {
                recipClass = (int)howTo, name = email
            };

            m_recipients.Add(recipient);

            return(true);
        }
Esempio n. 3
0
        public bool AddRecipient(string email, string name)
        {
            MapiRecipDesc recipient;
            
            recipient = new MapiRecipDesc();
            recipient.recipClass = (int) HowTo.MAPI_TO;
            recipient.address = email;
            recipient.name = name;

            m_recipients.Add(recipient);
            return true;
        }
Esempio n. 4
0
        public bool ResolveName(string name, ref MapiRecipDesc recipient)
        {

            m_lastError = MAPIResolveName(new IntPtr(0), new IntPtr(0), name, 0, 0, ref recipient);
            if (m_lastError > 1)
            {
                MessageBox.Show("MAPIResolveName failed! " + GetLastError(), "ResolveName", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return false;
            }

            return true;
        }
Esempio n. 5
0
 static extern int MAPIResolveName(IntPtr sess, IntPtr hwnd, string name, int flg, int rsv, ref MapiRecipDesc recipient);
Esempio n. 6
0
 public bool AddRecipient(MapiRecipDesc recipient)
 {
     m_recipients.Add(recipient);
     return true;
 }