improved functions, email notification for duplicate SMS messages