How you parse a collection of email addresses with mimekit?

Question: How do you parse an email with invalide characters in MailKit when using C#?

Login to See the Rest of the Answer

Answer: See the code below, see the other article here.

                var mimeMessage = new MimeMessage();
                mimeMessage.From.Add(new MailboxAddress(_emailSettings.Sender));

                mimeMessage.Subject = subject;

                mimeMessage.Body = new TextPart("html")
                    Text = message

Jack said:

Thank you this was helpful!!

Posted On: June 02, 2020 17:40:37 PM

© 2023 - ErnesTech - Privacy