Exemplo n.º 1
0
 /// <summary>
 /// this function does the work of creating the email address object
 /// and setting the necessary recipient email address values
 /// </summary>
 /// <param name="emailAddress">address property for Recipient</param>
 /// <param name="emailName">name property for the Recipient</param>
 /// <returns>Recipient object</returns>
 public static Recipient NewRecipient(string emailAddress, string emailName)
 {
     Recipient recip = new Recipient();
     EmailAddress email = new EmailAddress();
     email.address = emailAddress;
     email.name = emailName;
     recip.emailAddress = email;
     return recip;
 }