# Problem with formmail

**URL:** <https://forum.kirupa.com/t/problem-with-formmail/247854>\
**Category:** flash\
**Created:** [December 31, 2007, 4:07am UTC](https://forum.kirupa.com/t/problem-with-formmail/247854 "2007-12-31T04:07:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gaia](https://avatars.discourse-cdn.com/v4/letter/g/d6d6ee/32.png) [@Gaia](https://forum.kirupa.com/u/Gaia)\
**Post date:** [December 31, 2007, 4:07am UTC](https://forum.kirupa.com/t/problem-with-formmail/247854/1 "2007-12-31T04:07:22Z")

</div>

I am using the code below to send an e-mail form.  
It sends the e-mail, but it also opens a new window that  
says “Thank You For Filling Out This Form”.  
How can I get rid of this message, and the new window.  
I am using the Matt’s formmail.pl

You can view the site at [http://www.egecelengil.com/Palisade](http://www.egecelengil.com/Palisade)

var address:String = “[http://www.egecelengil.com/cgi-bin/formmail.pl](http://www.egecelengil.com/cgi-bin/formmail.pl)”;  
var url:URLRequest;  
var variables:URLVariables = new URLVariables();  
variables.subject = “Information Send From Palisade Academy Web Site”  
variables.recipient = "ege@egecelengil.com"

submit\_btn.addEventListener(MouseEvent.CLICK, sendform);

function sendform(event:MouseEvent):void  
{  
variables.name = name\_txt.text;  
variables.email = email\_txt.text;  
variables.address = adress\_txt.text;  
variables.phone = phone\_txt.text;

```
url = new URLRequest(address);
url.method = URLRequestMethod.GET;
url.data = variables;
navigateToURL(url);

```

}
