# Need help sending email with flash and php

**URL:** <https://forum.kirupa.com/t/need-help-sending-email-with-flash-and-php/149858>\
**Category:** Uncategorized\
**Created:** [June 1, 2005, 9:12pm UTC](https://forum.kirupa.com/t/need-help-sending-email-with-flash-and-php/149858 "2005-06-01T21:12:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmay321](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@mmay321](https://forum.kirupa.com/u/mmay321)\
**Post date:** [June 1, 2005, 9:12pm UTC](https://forum.kirupa.com/t/need-help-sending-email-with-flash-and-php/149858/1 "2005-06-01T21:12:50Z")

</div>

i read the tutorial, [color=#003366] **Flash** [font=Verdana]-Based[/font][/color][size=2][font=Verdana][size=4][color=#003366][size=2] Email Form Using PHP, [color=#000000]and can’t seem to get it to work. i created the flash file and php files following the instructions and uploaded the files to the server, and tested it by trying to send an email to myself - didn’t work, so then i tried using the tutorial’s example files (changed only the email address to my own in the php file) and that didn’t work either. i’ve never used php before, so am i missing something else i have to do to the php file. could it also be a problem with a server? i tried it on another website server as well, and it also didn’t work there. i’m so confused - please help![/color][/size][/color][/size][/font][/size]

flash file attached and php code below:

\<?php  
$sendTo = “[mmay321@yahoo.com](mailto:mmay321@yahoo.com)”;  
$subject = “New Mailing List Subcriber”;  
$headers = "From: " . $\_POST[“name”];  
$headers .= “\<” . $\_POST[“email”] . "\>  
";  
$headers .= "Reply-To: " . $\_POST[“email”] . "  
";  
$headers .= "Return-Path: " . $\_POST[“email”];  
$message = $\_POST[“message”];  
mail($sendTo, $subject, $message, $headers);  
?\>
