Esempio n. 1
0
        public void ShowAsync()
        {
            MailDialog message = new MailDialog("Test Message", "Test Body");

            message.Recipients.Add("*****@*****.**");
            message.Attachments.Add(@"D:\Desktop\test.zip");
            message.ShowAsync();
        }
Esempio n. 2
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);
        }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Recipient"/> class.
 /// </summary>
 /// <param name="emailAddress">The email address.</param>
 /// <param name="displayName">The display name.</param>
 /// <param name="recipientType">Type of the recipient.</param>
 public Recipient(string emailAddress, string displayName, MailDialog.RecipientType recipientType)
 {
     EmailAddress = emailAddress;
     DisplayName = displayName;
     RecipientType = recipientType;
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Recipient"/> class.
 /// </summary>
 /// <param name="emailAddress">The email address.</param>
 /// <param name="recipientType">Type of the recipient.</param>
 public Recipient(string emailAddress, MailDialog.RecipientType recipientType)
     : this(emailAddress, emailAddress, recipientType)
 {
 }