I’m trying to send a meeting invitation mail with html in the body.
my code look like this:
MailAddressCollection m = new MailAddressCollection();
Appointment app = new Appointment(
app.UniqueId = Guid.NewGuid().ToString();
msg.To = app.Attendees;
msg.IsBodyHtml = true;
msg.HtmlBody = body;// body contains a HTML string
msg.Subject = subject;
SmtpClient client = new SmtpClient(mailServer, 25);
But the invitation is Arrived wrong.
The appointment seems as an attachment.
When I send with regular text in the body’ It’s arrived correctly - as an appointment in the outlook calendar.
How can I solve the problem?
Thank you for contacting to Aspose Support team.
We have tested this issue but the results are different at our end. We sent out such an email to a Gmail user and the appointment receives find at the receiver end. Could you please share the destination server to which you are sending such an email?
We have tested the issue by sending a sample appointment message and were unable to reproduce the problem at our end. The output seems fine in MS Outlook as can be seen here from the screenshot. Can you please share with us if your Outlook client is configured with some public email provider account such as Gmail or some Exchange account. Please share your feedback with us for further assistance.