Dim client1 As IEWSClient = EWSClient.GetEWSClient(“https://owa.companyabc.com/ews/exchange.asmx”, “srv_email”, “fdderfddf;”, “ABC”)
client1.ImpersonateUser(ItemChoice.PrimarySmtpAddress, "email@example.com") Dim msg As MailMessage = New MailMessage msg.From.Add(New MailAddress("johnsmith@firstname.lastname@example.org", "John Smith")) msg.To.Add(New MailAddress("email@example.com", "Jane Jones")) msg.Subject = "Sending message from exchange server via Aspose (1)" msg.HtmlBody = "<h3>Sending message from exchange server via Aspose</h3>" client1.Send(msg)
When I execute the above code the email does get sent without error however, the friendly name is ignored and only the first part of the email address (before the @) is shown. Is there something I am missing to get the friendly name to appear?
Using Aspose.Email.dll v220.127.116.11