Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Ola Galera negocio seguinte tenho um codigo tipo Boletim informativo onde faço uma busca do que tem que ser enviando no bd.
bom mas acontece que dou um echo e mostra que esta tudo certim mas o email que chega pra mim nao vem o conteudo,,,
chega assim..
/applications/core/interface/imageproxy/imageproxy.php?img=http://www.airescomunicacao.com.br/o.jpg&key=9db1746924450c4c1c3c74e8b9ed3305f64219916bfa5683030214f6a672690b" alt="Imagem Postada" />
o codigo é este
<?include("conecta.php");$dia = date("j"); $ano = date("Y");$me = date("m"); switch ($me) { case 1: $mes = " Janeiro"; break; case 2: $mes = " Fevereiro"; break; case 3: $mes = " Março"; break; case 4: $mes = " Abril"; break; case 5: $mes = " Maio"; break; case 6: $mes = " Junho"; break; case 7: $mes = " Julho"; break; case 8: $mes = " Agosto"; break; case 9: $mes = " Setembro"; break; case 10: $mes = " Outubro"; break; case 11: $mes = " Novembro"; break; case 12: $mes = " Dezembro"; break; }$data=$dia;$data .=$mes;$data .=" de ";$data .=$ano;$email = $_POST['email'];$boletim = $_POST['boletim'];$data = date("Y/m/d"); $hora = date("H:i:s"); $squ="insert envio_boletim values('','$boletim','$data','$hora')"; if (mysql_query($squ)){ if ($email=='todos'){ $sql = "SELECT * FROM cadastro_boletim where status='1'"; $resultado = mysql_query($sql); while($row=mysql_fetch_array($resultado)){ $sqp = mysql_query("select * from boletim where id = $boletim"); $linha = mysql_fetch_array($sqp); $para=$row[1]; $assunto= $row[1].", Boletim ".$linha[1]; $msg = " <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'><html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' /><title>Comunicação | Informaires 2007 |</title><link href='css.css' rel='stylesheet' type='text/css' /></head><body><table width='631' border='0' cellspacing='0' cellpadding='0'> <tr> <td align='left' valign='top'><img src='http://www.seud.com.br/site/mailling/imgs/topo.jpg' width='631' height='153' /></td> </tr> <tr> <td align='left' valign='top' bgcolor='#E4E4E4'> <table width='100%' border='0' cellspacing='6' cellpadding='0'> <tr> <td valign='top' bgcolor='#F9F9F9'> <table width='100%' border='0' cellspacing='2' cellpadding='0'> <tr> <td width='20' height='18' align='left' valign='middle'> </td> <td align='left' valign='middle'><span class='titulo12'> Maringá, $data</span></td> <td width='20' align='left' valign='middle'> </td> </tr> <tr> <td width='20' height='18' align='left' valign='middle'> </td> <td align='left' valign='middle'><span class='titulo12'><strong>$linha[1]</strong></span> </td> <td width='20' align='left' valign='middle'> </td> </tr> </table> </td> </tr> <tr> <td valign='top' bgcolor='#E4E4E4'><img src='http://www.seud.com.br/site/mailling/imgs/1.jpg' width='2' height='2' /></td> </tr> <tr> <td valign='top' bgcolor='#FFFFFF'> <table width='100%' border='0' cellspacing='0' cellpadding='0'> <tr> <td valign='top' bgcolor='#FBFBFB'> </td> </tr> <tr> <td align='center' valign='top' bgcolor='#FBFBFB'>". //<!--INICIO DO LOOP --> $sqy = mysql_query("select * from noticia_boletim where boletim=$boletim"); while($result = mysql_fetch_array($sqy)){ echo" <table width='100%' border='0' cellspacing='2' cellpadding='0'> <tr> <td width='20' valign='top' bgcolor='#FBFBFB'> </td> <td height='30' align='left' valign='middle' bgcolor='#FBFBFB'><strong class='tituloNoti'>$result[1]</strong></td> <td width='20' valign='top' bgcolor='#FBFBFB'> </td> </tr> <tr> <td width='20' valign='top' class='titulo12'> </td> <td align='left' valign='middle' class='titulo12'>$result[2]</td> <td width='20' valign='top' class='titulo12'> </td> </tr> <!-- inicio foto --> <tr> <td valign='top' class='titulo12'> </td> <td align='left' valign='middle' class='titulo12'> <!--inicio --> <table width='100%' border='0' cellspacing='0' cellpadding='0'>". $num = 0; if($num==0){ echo"<tr>"; } echo"select * from imagens where id_noticia =$result[0]"; $f = mysql_query("select * from imagens where id_noticia =$result[0]"); while($ju = mysql_fetch_array($f)){ if($ju[3]==1){$i = 'Imagem'; $b ='+.gif'; } if($ju[3]==2){$i = 'Video'; $b ='-.gif'; } echo" <td align='center' valign='middle'> <table width='80' border='0' cellspacing='0' cellpadding='0'> <td align='center' valign='top' width=100px> <img src='http://www.seud.com.br/site/mailling/imgs/boletim/$ju[1]' width='80' height='80' /><br> <span class='titulo10'>$i</span><br> <span><img src='http://www.seud.com.br/site/mailling/imgs/$b' alt='+' width='64' height='13'/></span> </td> </table> </td>"; } if($num==3){ $num=-1; echo'</tr>'; } echo"</table> <!-- fim --> </td> <td valign='top' class='titulo12'> </td> </tr> <!-- Fim foto --> <tr> <td valign='top' class='titulo12'> </td> <td height='20' align='left' valign='middle' background='http://www.seud.com.br/site/mailling/imgs/divi.jpg' class='titulo12'> </td> <td valign='top' class='titulo12'> </td> </tr> </table> "; } //<!-- FIM DO LOOP--> echo"</td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td align='left' valign='top' bgcolor='#E4E4E4'> </td> </tr></table></body></html> "; $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\n"; $headers .= "from: Comunicaçao<falecom@seudomin.com>"; mail($para,$assunto,$msg,$headers); } echo"<script language=javascript>alert('Todos E-mail enviado com sucesso');window.location=('boletim.php');</script>"; exit;}}?> [http://forum.imasters.com.br/public/style_emoticons/](http://forum.imasters.com.br/public/style_emoticons/)default/thumbsup.gifCarregando comentários...