added functions for test sms/email