SMTPException Syntax error, message content is not acceptable here

476 views Asked by At

We have "SendEmail" functionality in our application. I am checking whether the email address is valid by checking its format via regex.

However if a user enters "[email protected]" (however its correct format), we get

"Syntax error, command unrecognized. The server response was: message content is not acceptable here" status code 579.

After trying multiple options, I figured that "@noemail" or @"nomail" are two domains where we get this error. I am trying to catch this exception however its not working.

I'd appreciate if anyone can help me.

0

There are 0 answers