1 Unanswered Topic

Remove Filter
Member Avatar for
Member Avatar for davidbcn

how to send mails individually instead of sending to all recipients together? my code is: function SendMail($msg,$subject,$addresses) { require "class.phpmailer.php"; //Fetch from email here foreach($addresses as $key=>$val){ $email = test_input($val); if((trim($email)=='') || (!filter_var($email, FILTER_VALIDATE_EMAIL))){ unset($addresses[$key]); } } $addresses=array_unique($addresses); $row = FetchAllsettingsCustomMailchmp(); //end fetch $mail = new PHPMailer(); $mail->PluginDir = ""; …

0
296

The End.