PHP'nin mail ile çalışan birden fazla css dersleri almak gibi olamaz, ben sadece iyi çalışmak için inline stilleri kazanılmış ettik ama elemanları ile sınıfları ilişkilendirmek çalıştığınızda bir hayır gitmek var ..
Yes, I know there are other options that are probably better than php's mail. Yes, the classes are local and not from an external style sheet.
Sadece 1 sınıf belirtilen iki dışarı göstermek ve her zaman birinci.
Ben sınıf koyarsanız = "sınıf1 class2" sınıf1 gösterileri, ben sınıf koyarsanız = "class2 sınıf1" sınıf 2 gösterir.
Ne oluyor?
İşte benim test posta olduğunu.
$msg = '
<html>
<head>
<style type="text/css">
.class1{background-color:red;}
.class2{color:blue;}
</style>
</head>
<body>
<div class="class2 class1">this is a test</div>
</body>
</html>';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
@mail($to, $sub, $msg, $headers);