Oct 29, 2018 06:29 PM|PatriceSc|LINK
Or try to just change that to :
if (Request.Form.Keys.Count != 4)
Response.StatusCode=400; // Bad request
and see if you see now 400 Bad request. For now if this test is entered you won't send the mail but you still get a 200 OK. I believe the problem could be using the "text/html" content type (which is when you get an html page not when you post form fields).
If you have an exception you should have that (or do you have something special in place when an exception happens ?). Also make sure once again that you do report an incorrect key count one way or the other....