1

sessions variable valuesユーザーが電子メールを受け取ったときにメッセージに表示できないというメッセージ関数の問題の表示セッション変数の値を解決するために助けが必要ですか?

メッセージメール機能では、変数の値を表示せずに変数名のみを表示していますか?

session_start();
if(is_array($_SESSION['product1'])){
$max=count($_SESSION['product1']);  
for($i=0; $i<$max; $i++){
$new_product=$_SESSION['product1'][$i];
$new_itemcode=$_SESSION['itemcode3'][$i];
$new_image=$_SESSION['image12'][$i];
$new_sizes=$_SESSION['sizes12'][$i];    
$new_price=$_SESSION['price12'][$i];    


$message .='<tr>
<td>'.implode ($new_itemcode).'</td>
<td>'.implode ($new_product).'</td>
<td><img src="http://demo.com/admin/'.implode ($new_image).'" 
width="150" height="150" /></td>
<td>'.implode ($new_sizes).'</td>
<td>'.implode ($new_price).';$total=$total+implode ($new_price).</td>
<td>'.$total.'</td>
</tr>';

}}

$headers .= 'MIME-Version: 1.0' . "\r\n";  
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";  
$headers .= "From: Demo.Com<$your_email>\r\n" .  
//"Reply-To: $from \r\n" .  
"X-Mailer: PHP/" . phpversion(); 
mail($to, $subject, $message, $headers);

電子メールのデモ画像

ここに画像の説明を入力

4

0 に答える 0