public void ShowAsync() { MailDialog message = new MailDialog("Test Message", "Test Body"); message.Recipients.Add("*****@*****.**"); message.Attachments.Add(@"D:\Desktop\test.zip"); message.ShowAsync(); }
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); }
/// <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; }
/// <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) { }