public void TestMAPI() { const string TEST_DATA_FILE_PATH = @"..\..\Data\test.txt"; string body = "Body Content here"; var file = TEST_DATA_FILE_PATH; string[] attachments = { file }; string[] recipients = { "EMAIL@DOMAIL" }; string subject = "Subject here"; MAPI mapi = new MAPI(); int result = mapi.ComposeMail(recipients, subject, body, attachments); Console.WriteLine("result: code={0}, status={1}", result, mapi.GetLastError()); }