fixed email sending and added notice