Hi,
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(
FormatFields.SPILookupToString(conferenceItem[Fields.ConferenceLocation]),
startDate,
endDate,
msg.From,
m
);
app.Attendees.Add(to);
app.UniqueId = Guid.NewGuid().ToString();
msg.To = app.Attendees;
msg.AddAlternateView(app.RequestApointment());
msg.IsBodyHtml = true;
msg.HtmlBody = body;// body contains a HTML string
msg.Subject = subject;
SmtpClient client = new SmtpClient(mailServer, 25);
client.Send(msg);
//
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?
Thenks.
Hi,
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?
Hi’
Hi,
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 <a rel=“nofollow” href=“(”[[BL]]http://prntscr.com/9yrx5x[[/BL]]">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.
Hi,
Hi,