The SMTP server does not support authentication.

Monday, November 25, 2024 5:39:45 PM
  • Posted: Wednesday, September 11, 2019 6:15 PM
  • 4
My IT department has informed me that the SMTP server is configured not to use authentication. I have cleared the user and password, but cannot get the system to send email - on windows or linux.

Is it possible to send email without providing an user / password to Mailkit?

The error message received is:
The SMTP server does not support authentication.

The stack trace:
at MailKit.Net.Smtp.SmtpClient.ProcessMailFromResponse(MimeMessage message, MailboxAddress mailbox, SmtpResponse response)
  at MailKit.Net.Smtp.SmtpClient.MailFromAsync(FormatOptions options, MimeMessage message, MailboxAddress mailbox, SmtpExtension extensions, Boolean doAsync, CancellationToken cancellationToken)
  at MailKit.Net.Smtp.SmtpClient.SendAsync(FormatOptions options, MimeMessage message, MailboxAddress sender, IList`1 recipients, Boolean doAsync, CancellationToken cancellationToken, ITransferProgress progress)
  at MailKit.Net.Smtp.SmtpClient.Send(FormatOptions options, MimeMessage message, CancellationToken cancellationToken, ITransferProgress progress)
  at MailKit.MailTransport.Send(MimeMessage message, CancellationToken cancellationToken, ITransferProgress progress)
  at Grand.Services.Messages.EmailSender.SendEmail(EmailAccount emailAccount, String subject, String body, String fromAddress, String fromName, String toAddress, String toName, String replyToAddress, String replyToName, IEnumerable`1 bccAddresses, IEnumerable`1 ccAddresses, String attachmentFilePath, String attachmentFileName, IEnumerable`1 attachedDownloads) in C:\dev-git\BICGraphic\Grand.Services\Messages\EmailSender.cs:line 153
  at Grand.Web.Areas.Admin.Services.EmailAccountViewModelService.SendTestEmail(EmailAccount emailAccount, EmailAccountModel model) in C:\dev-git\BICGraphic\Grand.Web\Areas\Admin\Services\EmailAccountViewModelService.cs:line 50
  at Grand.Web.Areas.Admin.Controllers.EmailAccountController.SendTestEmail(EmailAccountModel model) in C:\dev-git\BICGraphic\Grand.Web\Areas\Admin\Controllers\EmailAccountController.cs:line 154
0
  • Posted: Thursday, September 12, 2019 7:57 AM
  • 953
Hi Nathan,

It's impossible to create an email account without providing user and password. It's related with MailKit library. You can always submit an issue on MailKit GitHub, maybe authors will be able to make a workaround for you.
Best regards,
Patryk

GrandNode Team
1
  • Posted: Thursday, September 12, 2019 12:00 PM
  • 4
Thank you
0
back to top
Filters