This has already been answered in your previous question. You should not create different posts with the same question rather choose 'Improve Question' to add information to your question.
dhanovember wrote:
How can I close this aspx page automatically after sending the mail.
You may consider redirecting to the html page after the mail is sent. Something like
Response.Redirect("~/ContactUs.html");
after the send mail code.
Hope this helps!