Variable in Mail wird nicht angezeigt...

NullAhnung

Aktives Mitglied
hallo,
da bin ich mal wieder...

CODE <?php
//TESTMAIL verschicken
function mail_test($test){
$to = $test;
$betreff = "Ihre Zugangsdaten";
$from = "MIR";
$from .= "Content-Type: text/html\n";
$message = ' <p>
<? echo $_SESSION["IP"]; ?>
TEST</p>
<p> </p>
<p>TEST</p>
<p style="margin-bottom: 0px;">dfg</p> ';

$sent = mail($to, $betreff, $message, $from)&#59;

if($sent)
{print "Your mail was sent successfully"; }
else
{print "We encountered an error sending your mail"; }
}
?>


das mail kommt an... aber die $_SESSION["IP"] wird nicht angezeigt...
wahrscheinlich bin ich wieder zu blöd...?
 
CODE $message = ' <p>
'.$_SESSION["IP"].'
TEST</p>
<p> </p>
<p>TEST</p>
<p style="margin-bottom: 0px;">dfg</p> ';


Versuch es so.
 
Zurück
Oben