Eu estou neste momento com um problema.
Tenho um formulário em flash que comunica com o PHP, e no outlook recebo a mensagem correctamente, só que queria receber no Webmail também correctamente, e não está acontecer. Ou seja,
Aqui está bem, quando vejo que recebi um e-mail no RoundCube
http://deepspot.pt/form/1.png
Aqui quando abro o e-mail para ver o conteúdo...
http://deepspot.pt/form/2.png
Já tentei de tudo, já mexi no charset do php, já tenho no flash System.useCodepage = true;
E nada...
Código PHP:
Quote
<?php
header("Content-Type: text/html; charset=ISO-8859-1",true) ;
$mobile = $_POST['mobile'];
$msg = $_POST['msg'];
$firstname = $_POST['firstname'];
$email = $_POST['email'];
$sendTo = "o meu e-mail";
$subject = "Formulário de Eixo Urbano";
$message = "De:$firstname\nContacto:$mobile\nMensagem:$msg";
$headers = "From:$firstname<$email>\r\n";
$headers .= "Reply-To:$email\r\n";
$headers .= "Return-path:$email";
mail($sendTo, $subject, $message, $headers);
?>
header("Content-Type: text/html; charset=ISO-8859-1",true) ;
$mobile = $_POST['mobile'];
$msg = $_POST['msg'];
$firstname = $_POST['firstname'];
$email = $_POST['email'];
$sendTo = "o meu e-mail";
$subject = "Formulário de Eixo Urbano";
$message = "De:$firstname\nContacto:$mobile\nMensagem:$msg";
$headers = "From:$firstname<$email>\r\n";
$headers .= "Reply-To:$email\r\n";
$headers .= "Return-path:$email";
mail($sendTo, $subject, $message, $headers);
?>
Se colocar isto no PHP:
Quote
$mobile = utf8_encode($_POST['mobile']);
$msg = utf8_encode($_POST['msg']);
$firstname = utf8_encode($_POST['firstname']);
$email = utf8_encode($_POST['email']);
$msg = utf8_encode($_POST['msg']);
$firstname = utf8_encode($_POST['firstname']);
$email = utf8_encode($_POST['email']);
no interior da mensagem fica bem, mas no inicio está mal, ou seja inverte...
Já experimentei no Horde, e é igual...
Alguém sabe porque está acontecer isto?
Nas Opções de ambos tenho a opção HTML activa também...
Obrigado.

Help















