We are using MailKit/MimeKit to relay emails. when try to send mail throw error like 'Unexpected token at offset 37' Please help to resolve this.
Trace message as below
at MimeKit.MailboxAddress.set_Address(String value)
at MimeKit.MailboxAddress..ctor(Encoding encoding, String name, String address)
using (var smtpClient = new MailKit.Net.Smtp.SmtpClient())
{
smtpClient.Connect(mailServer, Port, MailKit.Security.SecureSocketOptions.None);
smtpClient.Send(mailMessage);
smtpClient.Disconnect(true);
}