# Flash - PHP - Mail - Problem

**URL:** <https://forum.kirupa.com/t/flash-php-mail-problem/195223>\
**Category:** programming\
**Created:** [July 29, 2006, 8:49pm UTC](https://forum.kirupa.com/t/flash-php-mail-problem/195223 "2006-07-29T20:49:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Exos\_Sho](https://avatars.discourse-cdn.com/v4/letter/e/ed655f/32.png) [@Exos\_Sho](https://forum.kirupa.com/u/Exos_Sho)\
**Post date:** [July 29, 2006, 8:49pm UTC](https://forum.kirupa.com/t/flash-php-mail-problem/195223/1 "2006-07-29T20:49:10Z")

</div>

well, i’ve done a mail form in php once, and it worked;  
but in flash, it never did. so i guess its something with the action script  
u have to press “kontakt” to see it [http://de.geocities.com/exossho/kussnet\_flash\_2.html](http://de.geocities.com/exossho/kussnet_flash_2.html)

here is the actionscript

> 

var senderLoad:LoadVars = new LoadVars();  
var receiveLoad:LoadVars = new LoadVars();

\_root.send\_mc.sender.onRelease = function(){  
senderLoad.theName = \_root.vorname\_mc.theName.text;  
senderLoad.theLastname = \_root.nachname\_mc.theLastname.text;  
senderLoad.theEmail = \_root.email\_mc.theEmail.text;  
senderLoad.thePhone = \_root.telefon\_mc.thePhone.text;  
senderLoad.theStreet = \_root.strasse\_mc.theStreet.text;  
senderLoad.theOrt = \_root.ort\_mc.theOrt.text;  
senderLoad.theKommentar = \_root.kommentar\_mc.theKommentar.text;  
senderLoad.sendAndLoad(“[http://de.geocities.com/exossho/send.php](http://de.geocities.com/exossho/send.php)”,receiveLoad);  
}

and the php

```php

<?php

$to = "exossho@gmail.com";
$subject = "mail test";
$message = "Name: " . $theLastname . " , " . $theName;
$message .= "/nEmail: " . $theEmail;
$message .= "/n/nAdresse: " . $theStreet . " / " . $theOrt;
$message .= "/n/nTelefon: " . $thePhone;
$message .= "/n/nKommentar: " . $theKommentar;
$headers = "From: $theEmail";
$headers .= "/nReply-To: $theEmail";

mail($to,$subject,$message,$headers);

?>

```

and here is the whole  
[http://de.geocities.com/exossho/kussnet\_flash\_2.fla](http://de.geocities.com/exossho/kussnet_flash_2.fla)
