How does the phpMailer handle sending multiple emails in bulk?

When sending multiple emails in bulk using phpMailer, it is important to use the `clearAllRecipients()` method after sending each email to clear the recipient list and avoid sending duplicate emails. This ensures that each email is sent to the correct recipient without any overlap.

// Loop through your list of recipients and send emails
foreach ($recipients as $recipient) {
    $mail->addAddress($recipient);
    
    // Set email content and send email
    $mail->Subject = 'Subject';
    $mail->Body = 'Email content';
    
    // Send the email
    $mail->send();
    
    // Clear all recipients to avoid sending duplicate emails
    $mail->clearAllRecipients();
}