ONLYOFFICE / CommunityServer

Free open source office suite with business productivity tools: document and project management, CRM, mail aggregator.
http://www.onlyoffice.com
Apache License 2.0
2.64k stars 604 forks source link

custom SMTP error #288

Open DrZhong opened 3 years ago

DrZhong commented 3 years ago

see the picture below, I found that this error was due to the use of this package 'MailKit' i can found this issues at MailKit https://github.com/jstedfast/MailKit/issues/635

image

DrZhong commented 3 years ago

i think it's a good idea to add an option for confirm should use 'NetworkCredential' or 'SaslMechanismNtlm '

if(shouldUseNtlm){      
  var ntlm = new SaslMechanismNtlm ("username", "password");
  smtpClient.Authenticate (ntlm);
}
else{
   if (_credentials != null)
    {
       smtpClient.Authenticate(_credentials);
   }
} 

image

Carazyda commented 3 years ago

Hi @DrZhong Thanks for your suggestion. We will think about it and try to add it in the next issues.