bool AddRecipient(string email, HowTo howTo)
        {
            MapiRecipDesc recipient = new MapiRecipDesc { recipClass = (int)howTo, name = email };

            m_recipients.Add(recipient);

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

            m_recipients.Add(recipient);

            return(true);
        }
        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;
        }
        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;
        }
 static extern int MAPIResolveName(IntPtr sess, IntPtr hwnd, string name, int flg, int rsv, ref MapiRecipDesc recipient);
 public bool AddRecipient(MapiRecipDesc recipient)
 {
     m_recipients.Add(recipient);
     return true;
 }