# Mail form will not send

**URL:** <https://forum.kirupa.com/t/mail-form-will-not-send/102554>\
**Category:** Uncategorized\
**Created:** [February 24, 2004, 10:35pm UTC](https://forum.kirupa.com/t/mail-form-will-not-send/102554 "2004-02-24T22:35:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xpress](https://avatars.discourse-cdn.com/v4/letter/x/898d66/32.png) [@Xpress](https://forum.kirupa.com/u/Xpress)\
**Post date:** [February 24, 2004, 10:35pm UTC](https://forum.kirupa.com/t/mail-form-will-not-send/102554/1 "2004-02-24T22:35:40Z")

</div>

I made up a little flash site for school, and now it doesn’t want to send the message of the mail form (it uses Php…) If anyone could help I would be very Happy 😃

The adress is [http://www.geocities.com/nova\_college2003/](http://www.geocities.com/nova_college2003/)  
-\>just click on invite to see.

(sorry for the geocities adress, but i didn’t have an other webspace availlable!)

The scripts and the php file is from the tutorial about: Flash-Based Email Form Using PHP  
[http://www.kirupa.com/developer/actionscript/flash\_php\_email.htm/](http://www.kirupa.com/developer/actionscript/flash_php_email.htm/)

I have altered the movie as less as possible to keep it working.

the send buttons actionscript:  
[AS]on (release) {  
// send variables in form movieclip (the textfields)  
// to email PHP page which will send the mail  
form.loadVariables(“email.php”, “POST”);  
}[/AS]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 25, 2004, 4:06pm UTC](https://forum.kirupa.com/t/mail-form-will-not-send/102554/2 "2004-02-25T16:06:34Z")

</div>

\<?php  
/\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\

- PHP 4.1.0+ version of email script. For more
- information on the mail() function for PHP, see
- [http://www.php.net/manual/en/function.mail.php](http://www.php.net/manual/en/function.mail.php)  
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/

$sendTo = "gjxpress@hotmail.com";  
$subject = “Invitation”;  
$headers = “From: " . $\_POST[“name”];  
$headers .= “\<” . $\_POST[“email”] .”\>  
";  
$headers .= "Reply-To: " . $\_POST[“email”];  
$message = $\_POST[“message”];

mail($sendTo, $subject, $message, $headers);  
?\>

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 25, 2004, 4:53pm UTC](https://forum.kirupa.com/t/mail-form-will-not-send/102554/3 "2004-02-25T16:53:34Z")

</div>

$sendTo = "gjxpress@hotmail.com";  
$subject = “Invitation”;  
$headers = “From: " . $HTTP\_POST\_VARS[‘name’];  
$headers .= “\<” . $HTTP\_POST[\_VARS’email’] .”\>  
";  
$headers .= "Reply-To: " . $HTTP\_POST\_VARS[‘email’];  
$message = $HTTP\_POST\_VARS[‘message’];

try that instead.

Viru.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 25, 2004, 6:17pm UTC](https://forum.kirupa.com/t/mail-form-will-not-send/102554/4 "2004-02-25T18:17:04Z")

</div>

The sh\*tty thing still won’t work…

I hope that you (or anyone else…) have/has any other ideas…
