Email notification and embed code not working properly