added a check to make sure from_email is configured before attempting to send messages