$to = 'jane@example.com'; $mail->setTo($to);
$to = array('jane@example.com', 'john@example.com', 'jacob@example.com'); $mail->setTo($to);In this example, the email message will be sent to the email addresses `jane@example.com`, `john@example.com`, and `jacob@example.com`. Package library used: PHPMailer.