Jump to content
Fórum Script Brasil
  • 0

PHPMAILER


paulomelo

Question

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

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...