email service & sms service & logic