paulomelo Posted May 16, 2012 Report Share Posted May 16, 2012 Quando envio emails, os destinatários o recebem, porém eu como remetente também os recebo. Como evitar que eu os receba?Imagina mandar 100 emails e recebe-los tb?Meu codigo:<?phprequire_once("phpmailer/class.phpmailer.php");$mail = new PHPMailer();$mail->IsSMTP();$mail->Host = "smtp.meusite.com.br";$mail->SMTPAuth = true;$mail->Username = $usuario;$mail->Password = $senha;$mail->Priority = 1; $mail->SMTPDebug = true; $mail->SingleTo = true; $mail->WordWrap = 50; $mail->From = $_POST["emailremetente"];$mail->FromName = $_POST["nomeremetente"];$mail->CharSet=iso-8859-1";$mail->AddAddress($emaildestinatario, utf8_decode($nomedestinatario));$mail->IsHTML(true);$mail->Subject = utf8_decode($_POST["assunto]);$mail->Body = utf8_decode($_POST["mensagememail"]);$headers = "MIME-Version: 1.1\n";$headers .= "Content-Description: File Transfer\n";$headers .= "Content-type: text/html; charset=iso-8859-1\n";$headers .= "From: " . "$nomeremetente" . " <" . "$emailremetente" . ">\r\n";$mail->Send();?>Podem me ajudar por favor?Grato Paulo - pauloalves.melo@hotmail.com Quote Link to comment Share on other sites More sharing options...
Question
paulomelo
Quando envio emails, os destinatários o recebem, porém eu como remetente também os recebo. Como evitar que eu os receba?
Imagina mandar 100 emails e recebe-los tb?
Meu codigo:
<?php
require_once("phpmailer/class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Host = "smtp.meusite.com.br";
$mail->SMTPAuth = true;
$mail->Username = $usuario;
$mail->Password = $senha;
$mail->Priority = 1;
$mail->SMTPDebug = true;
$mail->SingleTo = true;
$mail->WordWrap = 50;
$mail->From = $_POST["emailremetente"];
$mail->FromName = $_POST["nomeremetente"];
$mail->CharSet=iso-8859-1";
$mail->AddAddress($emaildestinatario, utf8_decode($nomedestinatario));
$mail->IsHTML(true);
$mail->Subject = utf8_decode($_POST["assunto]);
$mail->Body = utf8_decode($_POST["mensagememail"]);
$headers = "MIME-Version: 1.1\n";
$headers .= "Content-Description: File Transfer\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "From: " . "$nomeremetente" . " <" . "$emailremetente" . ">\r\n";
$mail->Send();
?>
Podem me ajudar por favor?
Grato Paulo - pauloalves.melo@hotmail.com
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.