Hi everyone
I use aspose.network.dll (5.6.0.0).
The following code is used to send meeting invitation (it is received in outlooks 2003 and 2007):
Body of invitation received in outlook 2003:SmtpClient smtpClient = new SmtpClient(“host”,email,“pass”);
MailAddressCollection recipients = new MailAddressCollection {email};
Appointment a = new Appointment(“location”,DateTime.Now,DateTime.Now.AddHours( 1),new MailAddress( email),recipients)
{
Description = “description” + Environment.NewLine + “from new line”
};
MailMessage mailMessage = new MailMessage(email,email);
mailMessage.AddAlternateView(a.RequestApointment());
smtpClient.Send(mailMessage);
Body of invitation received in outlook 2007:description
\nfrom new line
So you can see that new line is displayed incorrect way in both outlook 2003 and 2007.Description:
description
Please notice if you send emails through exchange 2003, they are displayed proper way in outlook 2003 and 2007.
Please advice how to fix this issue for smtpClient.
Thank you