PDA

View Full Version : need help with e-mail function on flash based website



Azazel
February 28th, 2004, 10:30 AM
OK, I made a flash based website, and everything works prettymuch like I want it to (I'm still new to all of this). But one thing I can't get to work is the e-mail function. I did the tutorial on

http://www.kirupa.com/developer/actionscript/flash_php_email.htm

but when i get the mail back from my site all i get is this

<p align=\"left\"><font face=\"Verdana\" size=\"10\" color=\"#000000\">» om du inte har något e-mail program så kan du skicka ett meddelande till oss härifrån «</font></p>

Did i miss somthing in the tutorial? And how do i make the php handle internationall characters?

ch0pstikninja
February 28th, 2004, 11:35 AM
php should already handle intl chars, as for the html in the e-mail, its probably whatever your client is...where are the e-mail's going? to a web-based e-mail account, or to something else...i need a little more info, and possibly your script...then i can help

Azazel
February 28th, 2004, 03:39 PM
<?php
$sendTo = "amun_re00@hotmail.com";
$subject = "Mail från hemsidan";
$headers = "From: " . $_POST["namn"];
$headers .= "<" . $_POST["mail"] .">\r\n";
$headers .= "Reply-To: " . $_POST["mail"];
$message = $_POST["meddelande"];
mail($sendTo, $subject, $message, $headers);
?>