Updated to send email notification for both success and failure builds.