Sending ics file with MailKit and Stringbuilder
I’m trying to send an email with a calendar invite, as an ics file attachment. I’m using Mailkit, as my understanding is the system.net.mail is deprecated.
I’m trying to send an email with a calendar invite, as an ics file attachment. I’m using Mailkit, as my understanding is the system.net.mail is deprecated.
I am using @jstedfast Mimekit/Mailkit library to send emails from my API. I want to know how to get the delivery status of each email. I tried overriding DeliveryStatusNotification to send notifications on Success:
I have this code which has been successfully sending emails – except for the other day when it did not. Therefore, I’d like to check the SMTP response, but not sure what to do.
I’m trying to learn how to use the MailKit library but I am struggling to retrieve attachments. So far my code will open a mailbox, go through each message and store data such as sender, subject, body, date etc. but I can’t deal with attachments.