Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Having problems sending email from Projector (Flash MX)

Status
Not open for further replies.

MoleDirect

Technical User
Sep 4, 2007
45
US
The FLA can be found at:
I am trying to have it send an email after a chat is finished using a blue button... to the right of the chat..

To use the program... it is full screen, use the little dot at the bottom of the first screen, that will take you to screen 2, put in a name, then hit continue (or enter), in the last page is the chat script, it only responds to HI and Bye right now but that will change soon, then the blue button on the right side of that chat should send an email to my email, but its not sending...

I am hoping to send the chat script (contents of the dynamic text box, or the off screen box) to the email in HTML format.

I have included the code to the PHP script (which as been tested and working using another flash program on my computer..)


Code:
Processor Page
<?php

$sendTo = "mikekovacic@gmail.com";
$subject = "My Flash site reply";
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">\r\n";

$headers .= "Reply-To: " . $_POST["email"] . "\r\n";

$headers .= "Return-path: " . $_POST["email"];

$message = $_POST["message"];

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

?>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top