full delete and mail sending functionality