added option for sending email, sms.