Dim client1 As IEWSClient = EWSClient.GetEWSClient(“https://owa.companyabc.com/ews/exchange.asmx”, “srv_email”, “fdderfddf;”, “ABC”)
client1.ImpersonateUser(ItemChoice.PrimarySmtpAddress, "johnsmith@companyabc.com")
Dim msg As MailMessage = New MailMessage
msg.From.Add(New MailAddress("johnsmith@company@abc.com", "John Smith"))
msg.To.Add(New MailAddress("janejones@gmail.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?
Thanks,
T.J.
Using Aspose.Email.dll v17.9.0.0