prepare email queue