sends mail on update