Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
bom galera fiz um sistema, e esse sistema envia um Email para o cliente com sua informações, esse Email e todo personalizado e esta em html..... ate ai tudo bem meu problema e o seguinte 1º - pq esse Email esta chegando no lixo? e 2º pq esse Email nao abre no Outlook? no Hotmail e nos demais Email ele abre certinho mais ele chega no lixo,mas no Outlook ele fica so no texto ele não le o html... me ajude vo jogar o código pra vcs dar uma olhada.... vlw
<?php
include "Includes/conexao.php";
if(isset($_GET['cliente'])){
$clienteget = $_GET['cliente'];
}
//SELECIONA TODAS OS CAMPOS DA TABELA
$scan = mysql_query("SELECT cliente, usuario, email, senha FROM crm_clientes WHERE cliente = '$clienteget'");$cliente = $exibir [0];
$usuario = $exibir [1];
$email = $exibir [2];
$senha = $exibir [3];
$para = "$email";
$assunto = "Informações para entrar em seu Painel.";
$conteudo = '<html>
<head>
<title>Informacoes nescessarias para logar no painel</title>
</head>
<body>
<table width="599" border="0" background="http://meusite.com/crm/Imagens/Email/bg.jpg">
<tr>
<td><table width="599" border="0">
<tr>
<td align="center"><img src="http://www.meusite.com/crm/Imagens/Email/logo.png" border="0" alt="" /></td>
</tr>
</table>
<table width="550" border="0" align="center">
<tr>
<td><p style=" width:550px; color:#fff; font:14px Arial, Helvetica, sans-serif; text-align:justify">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.<p></td>
</tr>
</table>
<table width="599" border="0">
<tr>
<td><img src="http://www.meusite.com/crm/Imagens/Email/bg_1.png" width="599" height="19" border="0" alt="" /></td>
</tr>
</table>
<!--CLIENTE-->
<table width="599" height="80" border="0" background="http://www.meusite.com/crm/Imagens/Email/riboon.png" style="margin-top:50px;">
<tr>
<td><h3 style=" width:100px; color:#330099; font:25px Tahoma, Geneva, sans-serif; float:left; margin-top:10px;">Cliente:<strong style=" color:#000; font:20px Arial, Helvetica, sans-serif; margin-left:60px;">'. $cliente .'</strong></h3> </td>
</tr>
</table>
<!--USUARIO-->
<table width="599" height="80" border="0" background="http://www.meusite.com/crm/Imagens/Email/riboon.png" style="margin-top:50px;">
<tr>
<td><h3 style=" width:100px; color:#330099; font:25px Tahoma, Geneva, sans-serif; float:left; margin-top:10px;">Usuario:<strong style=" color:#000; font:20px Arial, Helvetica, sans-serif; margin-left:60px;">'. $usuario .'</strong></h3> </td>
</tr>
</table>
<!--SENHA-->
<table width="599" height="80" border="0" background="http://www.meusite.com/crm/Imagens/Email/riboon.png" style="margin-top:50px;">
<tr>
<td><h3 style=" width:100px; color:#330099; font:25px Tahoma, Geneva, sans-serif; float:left; margin-top:10px;">Senha:<strong style=" color:#000; font:20px Arial, Helvetica, sans-serif; margin-left:60px;">'. $senha .'</strong></h3> </td>
</tr>
</table>
<!--PAINEL-->
<table width="599" height="80" border="0" background="http://www.meusite.com/crm/Imagens/Email/riboon.png" style="margin-top:50px;">
<tr>
<td><h3 style=" width:100px; color:#330099; font:25px Tahoma, Geneva, sans-serif; float:left; margin-top:10px;">Painel:<strong style=" color:#000; font:20px Arial, Helvetica, sans-serif; margin-left:60px;"><a href="http://www.meusite.com/" target="_blank">http://www.meusite.com</a></strong></h3> </td>
</tr>
</table>
<p> </p>
<h3 style="float:right; color:#fff; font:12px Arial, Helvetica, sans-serif; margin-right:10px;">Todos os direitos reservados</h3>
</td>
</tr>
</table>
</body>
</html>';
$headers = "From: <Eu>\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "X-Priority: 1\n"; // 1 Urgente, 3 Normal
mail($para, $assunto, $conteudo, $headers);
header("Location: clientes.php");
}
?>
1 - ir pro lixo é normal.
2 - aqui, pode ser q o usuario configurou os email para serem exibidos como texto puro(plain text) ou caso tenha alguma imagem/anexo ele foi bloqueado.