How to Reset the Array of Mail Recipients using PHPMailer

Today I had to fix a script that sends an e-mail using PHPMailer. Here is the intital code: $mail->From = “lampdocs@gmail.com”; $mail->FromName = “Lampdocs.com”; $mail->AddAddress(“test@lampdocs.com”); $mail->AddReplyTo($webmaster_email, “Lampdocs.com”); $mail->WordWrap = 70; // set word wrap $mail->IsHTML(true); // send as HTML $mail->Subject = “Order from New Paypal Address”; $mail->Body = $milo; //HTML Body $mail->Send(); I had to send 2 different… Read More »