Jump to content

PHPMailer


petrovitch

Recommended Posts

It's not in the code -- is't something missing.  I'm on a Linux server, and it is sending the email correctly BUT IT IS ALSO SENDING A COPY TO THE SENDER. This is a big problem.  Please help. All input information is being extracted from files using regex.  The input data is correct.

 

$email = new phpmailer();

$email->Host = EMAIL_HOST;

$email->Mailer = "smtp";

$email->From = $from;

$email->FromName = $sender;

$email->AddAddress($to);

$email->Subject = $subject;

$email->isHTML($isHTML);

$email->Body = $htmlBody;

$email->AddCC($cc);

$email->AddBCC($bcc);

$email->AddReplyTo($replyTo);

for ($i = 0; $i < sizeof($attachments); $i++)

{

$email->AddAttachment($attachments[$i]);

}

$email->SingleTo = true;

$email->IsSendmail();

$email->Send();

$email->ClearAddresses();

$email->ClearAttachments();

Link to comment
https://forums.phpfreaks.com/topic/265530-phpmailer/#findComment-1360861
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.