mailer sending mails based on selection from a database using gmail and PHPMailer