PDA

View Full Version : سوال: ایجاد قالب ایمیل



afsharjowkar
سه شنبه 07 خرداد 1392, 16:56 عصر
سلام برای ارسال ایمیل یه متغیر به این صورت تعریف کردم


$message = '<html><body>';
$message .= '<h2>ali </h2>';
$message .= '<h3>Your Account Details: </h3>';
$message .= '<table rules="all" style="border-color: #666;" cellpadding="10">';
$message .= "<tr style='background: #eee;'><td><strong>Name:</strong> </td><td>" . $order->name . "</td></tr>";
$message .= "<tr><td><strong>Email:</strong> </td><td>" . $order->email . "</td></tr>";
$message .= "<tr><td><strong>Username:</strong> </td><td>" . $product->username . "</td></tr>";
$message .= "<tr><td><strong>Password:</strong> </td><td>" .$product->password . "</td></tr>";
$message .= "</table>";
$message .= "</body></html>";

وای وقتی ایمیل ارسال میشه جیمیل به عنوان یه کد html میشناسه و استیلیش نشون نمیده
چیکارش کنم ؟