Send mail from outlook without open it

Try adding your self.close() to the onsubmit event handler in the form tag.

eg:
< form name="feebback" METHOD="post" ENCTYPE="text/plain" action="mailto:clueless@test.edu" onsubmit="self.close()">

However, have you opened a popup window which the form is displayed in? If not, using location.replace() would be a better alternative than trying to close the browser window.

Comments

  1. it was take a lot of time to find it, but it worked finally

    ReplyDelete

Post a Comment

Popular posts from this blog

How to put java applet in aspx page‏‏

Introduction to Object Oriented Programming Concepts (OOPS) in C#.net