Hi,
We are trying to send a meeting request using Aspose.Email Dll to an Gmail account from a windows forms application (Framework 3.5)
But while viewing the received mail in Gmail the meeting does not have the Subject.
Please find below the code to reproduce this.
(The same issue appears for Orange email account also. We have not tested for other email service providers)
Please let us know how to solve this. Thanks.
Dim msg As New MailMessage()
msg.To.Add("XXXXXXXXXX")
msg.From = New MailAddress("YYYYYYYYYY")
msg.Subject = "TEST_SUBJECT_THAT_WILL_NOT_COME"
msg.Body = "TEST_BODY"
Dim agendaAppointment As Appointment = Nothing
agendaAppointment = New Appointment("TEST_SUBJECT_THAT_WILL_NOT_COME", System.DateTime.Now, System.DateTime.Now.AddMinutes(10), msg.From, msg.[To])
agendaAppointment.UniqueId = Guid.NewGuid().ToString()
agendaAppointment.Description = "TEST_BODY"
msg.AlternateViews.Add(agendaAppointment.RequestApointment())
Dim smtp As SmtpClient = New SmtpClient("smtp.gmail.com", 587, "EMAIL_ADDRESS", "PASSWORD")
smtp.EnableSsl = True
smtp.Send(msg)
Please note that if the mail is viewed in Gmail from Internet Explorer, then the subject is there in the mail. But when we see the attached meeting.ics file, the subject i.e., the summary is empty.
If the Gmail account is configured in Outlook, then in the mail itself the subject is empty.
Please let us know how to solve this issue?
Regards,
Deivarayan