set pending_email variable