Exemple #1
0
        public void ShowDialog() {
            MailDialog message = new MailDialog("Test Message", "Test Body");
            message.Recipients.Add("*****@*****.**");
            message.Attachments.Add(@"D:\Desktop\test.zip");

            int errorCode = message.ShowDialog();

            Assert.Less(errorCode, 2);
        }
Exemple #2
0
 public void ShowAsync() {
     MailDialog message = new MailDialog("Test Message", "Test Body");
     message.Recipients.Add("*****@*****.**");
     message.Attachments.Add(@"D:\Desktop\test.zip");
     message.ShowAsync();
 }