What Does ignoreSmtpCheck Parameter Mean in MailAddress Constructor?

in MailAddress.MailAddress | Aspose.Email for .NET API Reference
Can you explain this parameter IgnoreSmtpCheck?


Thank you for posting the query. This parameter allows you to disable validation for the format of SMTP email addresses defined in RFC 822 standard.

Ok Thanks!

I have a question.
I attach you an example.
If I set TRUE, smtp give me an error.
If I set FALSE, smtp doesn’t give me any error.

Error is “Syntax error in parameters or arguments. The server response: 5.1.3 Bad recipient address syntax”

Shouldn’t it be the other way around??

In this example give me no error after call SEND method: example.docx (11.8 KB)

Unfortunately, I was unable to reproduce the same error. Please check the issue with the latest version of Aspose.Email. If the issue persists, please share a stack trace for the error.

Exception raises when email address has a “comma” in the alias name. and IgnoreSmtpCheck = TRUE

you can replicate with this project ASPOSE EMAIL 21.7.
You need replace your smtp server and credentials only.


TestAsposeEmail21.zip (4.1 MB)

As I mentioned above, I was still unable to reproduce the same error, but a similar error is thrown: “SmtpException: Syntax error, command unrecognized. The server response: 5.5.2 Syntax error”. I added a ticket with ID EMAILNET-40383 in our tracking system. Our development team will investigate this case. I will inform you of any progress.

The issues you have found earlier (filed as EMAILNET-40383) have been fixed in this update.