# Flash form doesn't send email using php

**URL:** <https://forum.kirupa.com/t/flash-form-doesnt-send-email-using-php/263447>\
**Category:** Uncategorized\
**Created:** [June 16, 2008, 9:33am UTC](https://forum.kirupa.com/t/flash-form-doesnt-send-email-using-php/263447 "2008-06-16T09:33:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tzvio](https://avatars.discourse-cdn.com/v4/letter/t/ec9cab/32.png) [@tzvio](https://forum.kirupa.com/u/tzvio)\
**Post date:** [June 16, 2008, 9:33am UTC](https://forum.kirupa.com/t/flash-form-doesnt-send-email-using-php/263447/1 "2008-06-16T09:33:19Z")

</div>

Hi.  
I got a flash form that should pass variables with POST to a php and send by email.  
i’ve tested the php file and it works and sends email.  
i’ve published the flash and tested it offline - it sends the mail.  
i tried using both absolute path to the file or relative.

submitting the form from server doesn’t send email , and doesn’t do nothing.

this is the actionscript code:

stop();  
[//System.useCodepage](https://System.useCodepage) = true;  
email\_txt.restrict = “”;  
email\_txt.maxChars = 40;  
name\_txt.restrict = “”;  
name\_txt.maxChars = 40;  
phone\_txt.restrict = “”;  
phone\_txt.maxChars = 200; phone\_txt.onSetFocus = function() { status\_txt.text = ‘’;};email\_txt.onSetFocus = name\_txt.onSetFocus=phone\_txt.onSetFocus=phone\_txt.onSetFocus; dataSender = new LoadVars();  
dataReceiver = new LoadVars();  
submit\_btn.onRelease = function() {  
fullname = this.\_parent.name\_txt.text;  
email = this.\_parent.email\_txt.text;  
phone = this.\_parent.phone\_txt.text;  
bla = this.\_parent.mess.text;  
dataSender.fullname = fullname;  
dataSender.email = email;  
dataSender.phone = phone;  
dataSender.bla = bla;  
dataSender.sendAndLoad(“contactform.php5”, dataReceiver, “POST”);  
this.\_parent.gotoAndStop(18);  
};
