# Flash mail form / sendmail.php

**URL:** <https://forum.kirupa.com/t/flash-mail-form-sendmail-php/49858>\
**Category:** Uncategorized\
**Created:** [April 27, 2004, 10:17am UTC](https://forum.kirupa.com/t/flash-mail-form-sendmail-php/49858 "2004-04-27T10:17:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tico](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@tico](https://forum.kirupa.com/u/tico)\
**Post date:** [April 27, 2004, 10:17am UTC](https://forum.kirupa.com/t/flash-mail-form-sendmail-php/49858/1 "2004-04-27T10:17:31Z")

</div>

hi guys,

i’m trying to use the mail form component from [Shinstudio](http://www.shinstudio.com/blog/) .

i’m using a sendmail.php script like this one:

```php

<?php 
$ToEmail = "username@mydomain.com"; 
$ToName = ""; 
#$ToName = "myname"; 
$Name = $_POST['Name']; 
$Email = $_POST['Email']; 
$Message = $_POST['Message']; 
$EmailBody = "Sent By: $Name
Senders Email: $Email
Senders Message: $Message

Message; 
$EmailFooter="nThis message was sent by: $Name from $REMOTE_ADDR If you feel that you recieved this e-mail by accident please contact us at www.ellusign.com"; 
$Message = $EmailBody.$EmailFooter; 
mail($ToName." <".$ToEmail.">",$Subject, $Message, "From: ".$Name." <".$Email.">"); 

Print "_root.Mail.EmailStatus=Complete - Your mail has been sent"; 
?>

```

i put the sendmail.php script on the same root of the swf file, but things are not workin…

can anyone help me with this problem? :h:

[color=darkorange]note: i’m very dummie with AS and PHP[/color]
