Já tentei colocar ela como background do td mas nao funcionou tb..
Tah ai o código:
$htm="";
$htm.="<html>\n";
$htm.="<head>\n";
$htm.="<title>NEWS GRUPO PLYME</title>\n";
$htm.="<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\n";
$htm.="<style type=\"text/css\">\n";
$htm.="<!--\n";
$htm.=".style {}\n";
$htm.="-->\n";
$htm.="</style>\n";
$htm.="</head>\n";
$htm.="<body bgcolor=\"#CECFCE\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\n";
$htm.="<table bgcolor=\"#ffffff\" width=\"550\" border=\"1\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#000000\">\n";
$htm.=" <tr>\n";
$htm.=" <td>\n";
$htm.=" <div style='font-family: Tahoma, Verdana; width: 577px; height: 613px; position: absolute; z-index: 1;'>\n";
$htm.=" <img src='http://www.plyme.com.br/imagens/$imagem' border=0>\n";
$htm.=" <div style='z-index: 2; height: 440px; overflow-y: auto; overflow-x: hidden; margin-top: -450px; margin-right: 15px; margin-bottom: 10px; margin-left: 15px; padding: 0 5px;'>$descricao</div>";
$htm.=" </div>\n";
$htm.=" </td>\n";
$htm.=" </tr>\n";
$htm.="</table>\n";
$htm.="</body>\n";
$htm.="</html>\n";
$subject = "Teste::.. ";
$to = $rsLista['email_cliente'];
$headers = "From: Grupo Plyme <plyme@plyme.com.br>\r\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "Reply-to:empresa@empresa.com.br\n";
$from = "Teste <empresa@empresa.com.br>";
$enviou = @mail($to, $subject, $htm, $headers);
Qdo a pessoa recebe usando programa para email é da seguinte forma como na imagem 1
E qdo recebe na web é como na imagem 2 q é onde o texto fica atras da imagem..
Aguardo uma ajuda
Depois d tanto tentar achei uma solução:
$htm="";
$htm.="<html>\n";
$htm.="<head>\n";
$htm.="<title>NEWS GRUPO PLYME</title>\n";
$htm.="<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\n";
$htm.="</head>\n";
$htm.="<body bgcolor=\"#cecfce\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\n";
$htm.="<table bgcolor=\"#ffffff\" width=\"577\" height=\"613\" border=\"1\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#000000\">\n";
$htm.=" <tr>\n";
$htm.=" <td valign='bottom' background='http://www.plyme.com.br/imagens/$imagem'>\n";
$htm.=" <img src='http://www.plyme.com.br/tmp.jpg' border='0' style='display: none; width:1px; height:1px;' />\n";
$htm.=" <div style='height: 440px; overflow-y: auto; overflow-x: hidden; margin-right: 15px; margin-bottom: 10px; margin-left: 15px; position: fixed; padding-right: 5px;'>$descricao</div>";
$htm.=" </td>\n";
$htm.=" </tr>\n";
$htm.="</table>\n";
$htm.="</body>\n";
$htm.="</html>\n";
A mágica é em uma imagem na tag img q nao existe, entao no outlook ele tenta baixar a imagem como nao consegue vai baixando as outras e dá certo.. mas só testei no outlook até 2003.
Abraço
O recebimento no outlook 2007 não foi compatível pois a microsoft retirou algumas funcionalidades das tags html, como:
* no support for background images (HTML or CSS)
* no support for forms
* no support for Flash, or other plugins
* no support for CSS floats
* no support for replacing bullets with images in unordered lists
* no support for CSS positioning
* no support for animated GIFs
Entre outras.. Estou tentando achar uma solução para resolver esta incompatibilidade, se alguém puder ajudar, aguardamos...
Attached Files
Edição feita por: Josy, 28/08/2008, 11:29.