I've had no problem sending an email (from gmail, to a gmail account) where the ICS calendar event is attached.
But I want to send it so that the user sees the event
in the body of the email and can click yes/no, which, when I get these kinds of emails, automatically adds the event to my google calendar.
For the life of me I have not been able to get the ICS embedded in the BODY of the email!
What I have tried:
Lots of examples, here's one
BradVin's .Net Blog - Creating vCalendars programmatically in C#[
^] which does NOT put the calendar event into the body of the email. He's doing what everyone else is doing.
Follow up: If I send the email to an Outlook account, it shows up inline simply by setting the content disposition of the attached ICS file to inline --- snippet:
var att = new Attachment("meeting.ics", contype);
att.ContentDisposition.Inline = true;
msg.Attachments.Add(att);
But
this discussion[
^] talks about having to implement a multipart/mixed structure for gmail and yahoo!
Can anyone verify this?