Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
http://forum.imasters.com.br/public/style_emoticons/default/thumbsup.gif
Tenho um sistema de email que envia usando o PHPmailer mais estou tentando usar dentro de um Iframe e ele não esta enviando simplismente fica branco a página de resposta....
contato.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Untitled Document</title><style type="text/css"><!--body { margin-left: 0px; margin-top: 0px; margin-right: 0px;}--></style><link href="../../style/style.css" rel="stylesheet" type="text/css" /></head><body><form id="form1" name="form1" method="post" action="email.php"> <table width="101%" height="439" cellpadding="0" cellspacing="0" background="imagens/fita.gif"> <tr> <td height="437" valign="top"> <table width="441" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="77" colspan="4"><div align="center"><img src="../../imagens/logo_vazado.gif" width="160" height="63" /></div></td> </tr> <tr> <td height="39" colspan="4"><div align="center" class="texto_titulo_paginas">FALE CONOSCO </div></td> </tr> <tr> <td width="9"> </td> <td width="109"><div align="left" style="font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; color:#666666">Nome:</div></td> <td colspan="2"><div align="left"> <input style="width:300px;" name="nome" type="text" id="nome" /> </div></td> </tr> <tr> <td> </td> <td> </td> <td colspan="2"> </td> </tr> <tr> <td> </td> <td><div align="left" style="font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; color:#666666">Email:</div></td> <td colspan="2"><div align="left"> <input style="width:300px;" name="email" type="text" id="email" /> </div></td> </tr> <tr> <td> </td> <td> </td> <td colspan="2"> </td> </tr> <tr> <td> </td> <td><p align="left" style="font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; color:#666666">Telefone:</p></td> <td colspan="2"><div align="left"> <input style="width:300px;" name="fone" type="text" id="fone" /> </div></td> </tr> <tr> <td> </td> <td> </td> <td colspan="2"> </td> </tr> <tr> <td> </td> <td><div align="left" style="font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; color:#666666">Assunto:</div></td> <td colspan="2"><div align="left"> <input style="width:300px;" name="assunto" type="text" id="assunto" /> </div></td> </tr> <tr> <td> </td> <td valign="top"> </td> <td colspan="2"> </td> </tr> <tr> <td> </td> <td valign="top"><div align="left" style="font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; color:#666666">Mensagem:</div></td> <td colspan="2"><div align="left"> <textarea style="width:300px; height:100px;" name="msg" id="msg"></textarea> </div></td> </tr> <tr> <td> </td> <td><div align="left"></div></td> <td colspan="2"><div align="left"></div></td> </tr> <tr> <td> <div align="right"></div></td> <td> </td> <td width="308"><div align="right"> <input style="background:#8D8D8D; font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#FFFFFF; font-weight:bold;" type="submit" name="Submit" value="Enviar" /> </div></td> <td width="15"> </td> </tr> </table> </td> </tr> </table></form></body></html>
email.php
<?$falar_com = "email@hot.com";$SUBJECT = $assunto;$html = "<style type=text/css><!--.style1 {color: #000000}.style2 { font-size: 16px; color: #990000;}.style3 { font-size: 11px; color:#FF0000;}--></style><table width=619 border=0 align=center cellpadding=0 cellspacing=0 bgcolor=#FFFFFF> <tr bgcolor=#F2F2F2 > <td bgcolor=#FFFFFF style='font-family:Arial, Helvetica, sans-serif; font-size:14px; color:#FFFFFF; font-weight:bold;'> </td> <td width=615 height=19 colspan=2 bgcolor=#990000 style='font-family:Arial, Helvetica, sans-serif; font-size:14px; color:#FFFFFF; font-weight:bold;'><div align=center>INSTITUTO CULTURAL CAMINHANDO E CANTANDO </div></td> </tr> <tr bgcolor=#F2F2F2 > <td bgcolor=#FFFFFF style='font-family:Arial, Helvetica, sans-serif; font-size:14px; color:#333333; font-weight:bold;'> </td> <td height=19 colspan=2 bgcolor=#FFFFFF style='font-family:Arial, Helvetica, sans-serif; font-size:14px; color:#333333; font-weight:bold;'><div align=left><span style='color:#FFFFFF';>...</span style='font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#333333; font-weight:bold;'><? echo ".$para."; ?></div></td> </tr> <tr bgcolor=#F2F2F2 > <td width=4 bgcolor=#FFFFFF style='font-family:Arial, Helvetica, sans-serif; font-size:14px; color:#333333; font-weight:bold;'> </td> <td colspan=2 style='font-family:Arial, Helvetica, sans-serif; font-size:14px; color:#333333; font-weight:bold;'><table width=615 border=1 align=center cellpadding=2 cellspacing=2 bordercolor=#FFFFFF bgcolor=#FFFFFF> <tr> <td width=65 bgcolor=#D38F92 style='font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#333333; font-weight:bold;'><span class=style1>Nome:</span></td> <td width=530 bgcolor=#F1DCDD><div align=left style='font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#000000; font-weight:bold;'>".$nome."</div></td> </tr> <tr> <td bgcolor=#D38F92 style='font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#333333; font-weight:bold;'><span class=style1>Email:</span></td> <td bgcolor=#F1DCDD style='font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#333333; font-weight:bold;'><div align=left><span class=style1>".$email."</span></div></td> </tr> <tr> <td bgcolor=#D38F92 style='font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#333333; font-weight:bold;'><p class=style1>Telefone:</p></td> <td bgcolor=#F1DCDD style='font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#333333; font-weight:bold;'><div align=left><span class=style1>".$fone."</span></div></td> </tr> <tr> <td bgcolor=#D38F92 style='font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#333333; font-weight:bold;'><span class=style1>Assunto:</span></td> <td bgcolor=#F1DCDD style='font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#333333; font-weight:bold;'><div align=left><span class=style1>".$assunto."</span></div></td> </tr bgcolor=#F2F2F2 > <tr> <td bgcolor=#D38F92 style='font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#333333; font-weight:bold;'><span class=style1>Mensagem:</span></td> <td bgcolor=#F1DCDD style='font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#333333; font-weight:bold;'><div align=left><span class=style1>".$msg."</span></div></td> </tr> <tr> <td colspan=2 style='font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#333333; font-weight:bold;'><div align=center><span class="style2">GF-Interactive</span><br> <span class=style1>Development and Desing </span><br> <span class=style3>José Augusto de Moura Ornelas e Frederico de Moura Ornelas</span> </div></td> </tr> </table></td> </tr> </table>";require("phpmailer/class.phpmailer.php");$mail = new PHPMailer();// $mail->IsSMTP(); // telling the class to use SMTP// $mail->Host = "smtp.email.com"; // SMTP server$mail->From = $falar_com ; $mail->FromName = $nome ;$mail->AddAddress( "$falar_com", 'George Augusto') ;$mail->IsHTML(true);$mail->Subject = $assunto;$mail->Body = $html;if(!$mail->Send()){ echo "Message was not sent"; echo "Mailer Error: " . $mail->ErrorInfo;}else{ echo " <style type=text/css><!--.style1 {color: #990000}--></style><table width=100% height=16 border=0 cellpadding=0 cellspacing=0> <tr> <td height=16 valign=top background='imagens/matriz.gif' style='font-family:Arial, Helvetica, sans-serif; font-size:14px; font-weight:bold; color:#666666'><blockquote> <div align='center'> CONFIRMAÇÃO DE RECEBIMENTO </div> </blockquote></td> </tr> </table> <table width=100% height='566' border='0' cellpadding='0' cellspacing='0' background='imagens/fita.gif'> <tr> <td valign='top' scope=row> <div align='center'><span style='font-family:Arial, Helvetica, sans-serif; font-size:18px; color:#666600;'><br> <span class=style1>INSTITUTO CULTURAL CAMINHANDO E CANTANDO</span> <br> <br></span></div><p align='center' style='font-family:Arial, Helvetica, sans-serif; font-size:24px; color:#000099; font-weight:bold;'>Email enviado com sucesso!</p><p align='center' style='font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#990000; font-weight:bold;'><span style='color:#FF0000;'></span> </p><P align=center><strong> Obrigado por se comunicar conosco! </strong></td> </tr></table>";}?> [http://forum.imasters.com.br/public/style_emoticons/](http://forum.imasters.com.br/public/style_emoticons/)default/thumbsup.gif Valeu pessoal!!!Carregando comentários...