Changed the email backend to log errors when emails cannot be sent