Syntax error through client.send() after successful authentication
See original GitHub issueI get a MailKit.Net.Smtp.SmtpCommandException: 'Syntax error, command unrecognized'
crash on sending a message after a successful SMTP authentication.
Connected to ...
S: 220 ... ESMTP outbound-server; Fri, 21 Oct 2022 23:23:16 +0200
C: EHLO Der-Geraet
S: 250-... Hello Der-Geraet [/...] , Pleased to meet you
S: 250-DSN
S: 250-HELP
S: 250 AUTH LOGIN DIGEST-MD5 PLAIN CRAM-MD5
C: AUTH DIGEST-MD5
S: 334 ...
C: ********
S: 334 ...
C:
S: 235 Authentication successful
C: MAIL FROM:<joey@friends.com>
S: 500 Syntax error, command unrecognized
C: RSET
S: 250 Requested mail action okay, completed
Unhandled exception. MailKit.Net.Smtp.SmtpCommandException: Syntax error, command unrecognized
at MailKit.Net.Smtp.SmtpClient.OnSenderNotAccepted(MimeMessage message, MailboxAddress mailbox, SmtpResponse response)
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, Int64 size, 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.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 TestClient.Program.Main(String[] args) in ... .cs:line 36
I use the Sample Code for sending a message.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
c# SMTP auth send problem Syntax error in parameter or ...
I have a method in c# that sends email. Works fine and has been working fine for two years. I ran into a...
Read more >Handling operation errors - Apollo GraphQL Docs
These are errors related to the server-side execution of a GraphQL operation. They include: Syntax errors (e.g., a query was malformed); Validation errors...
Read more >Everything you need to know about SMTP Error Codes
SMTP is used to send emails across the network with the help of MTA. Here in this tutorial we will go through the...
Read more >Status codes in HTTP
Following a POST command, this indicates success, but the textual part of the response line indicates the URI by which the newly created...
Read more >How to Fix a 400 Bad Request Error (Causes and Fixes)
1. URL String Syntax Error. The HTTP error 400 can occur due to incorrectly typed URL, malformed syntax, or a URL that contains...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yea your python code is not using DIGEST-MD5.
Was at dinner before using my phone, so had to wait until now to respond with some sample code that should work just like the python code: