i need to use a php script to recieve an email body text from flash and send that email to a fix address with a fix subject.
i was able to do so but i got stuck with 2 problems:
1. why does a multiline text data get sended as a single line one?
2. The body text alone is in Hebrew and Hebrew ONLY... the email keeps coming in 'Jibrish'.
What can be done about these 2??
P.s.
Here is the php script i use:
<?php
$name = 'Wedding';
$email = 'june9@lycos.co.uk';
$subject = 'Confirmation';
$message=utf8_decode($HTTP_POST_VARS);
$toaddress='haba97@int.gov.il';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=ISO-8859-8' . "\r\n";
mail($toaddress,$subject,$message,"From: $name <$email>", $headers);
?>