Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Olá pessoal. véspera de 2010 e eu aqui batendo cabeça com php hehehe. Bom eu tenho um newsletter no meu site q eu mesmo fiz, mas quando eu mando email para muitas pessoas ele dá o seguinte erro:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@jspinformatica.com.br and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
o código fonte é o seguinte:
<?
include("config.php");
$pesquisa = mysql_query("SELECT * FROM `$tabela_03` WHERE status=1", $con) or die('ERRO NA CONSULTA.
CONSULTA ENVIADA = '.$pesquisa.'
ERRO DO MYSQL = '.mysql_error());
$assunto = $_POST["assunto"];
$mensagem = $_POST["mensagem"]; $destino = "$linha[email]";
if(empty($assunto) or empty($mensagem)){
echo "<script>alert('Todos os campos são obrigatórios');top.location.href='../newsletter.php?gassunto=$assunto&gmensagem=$mensagem';</script>";
}else{
$email = mail("$destino", "$assunto", "$assunto
$mensagem
Acesse nosso site http://www.jspinformatica.com.br
Se não deseja mais receber este tipo de mensagem clique no link abaixo
[http://www.jspinformatica.com.br](http://www.jspinformatica.com.br)/includes/newsletter_off.php?email=".$destino."&status=0", "From: jefferson@jspinformatica.com.br <Administrador>");
if($email){
echo "<script>alert('E-mail enviado com sucesso');top.location.href='../newsletter.php';</script>";
}else{
echo "<script>alert('Não foi possível enviar o e-mail, tente novamente');top.location.href='../newsletter.php?assunto=$assunto&mensagem=$mensagem';</script>";
}
}
}
?>
Obrigado pela ajuda e feliz ano novo. Tomara que alguém me ajude antes do ano que vem. Hehehe.
Carregando comentários...