Hallo ich habe folgende HTTP-E-Mail im base64 Format welche ich gerne als HTML anzeigen möchte:
http://www.trancebeats.com/e-mail.htm
Ich benutze diese Funktion um die Email vom Server abzufragen und sie anschließend in html umzuwandeln und dann auszugeben:
Leider wird nach base64_decode das aus dieser Email:
Was mache ich falsch?
http://www.trancebeats.com/e-mail.htm
Ich benutze diese Funktion um die Email vom Server abzufragen und sie anschließend in html umzuwandeln und dann auszugeben:
PHP:
$server = $HTTP_SESSION_VARS["server"];
$username = $HTTP_SESSION_VARS["username"];
$password = $HTTP_SESSION_VARS["password"];
$uid = $HTTP_GET_VARS["uid"];
$mbox = imap_open("{" . $server . ":110/pop3}INBOX",$username,$password);
$msg = imap_fetchheader($mbox,$uid,FT_UID);
$msg2 = imap_body($mbox,$uid,FT_UID);
$message = base64_decode($msg2);
imap_close($mbox);
header("Content-type: text/html");
echo $message;
Leider wird nach base64_decode das aus dieser Email:
Code:
N¬ú+>ké®–Ø©j»~™ë,j¾ŠŒ Á>~Šæj
Was mache ich falsch?