update pending email to false after sending the email