Send Notification Problem

Sep 26, 2010 at 6:28 PM

Hello everyone

 

      I am trying to send notificaiton with the code below my problem is i am getting null as return value.and notifications are not sent.Where am i doing wrong? Can u successfully send notifications with this toolkit? if so how can i do it?

 

public static string SendNotification(string Recipient, string Notification)
        {
            try
            {

                //tApi is declared and initialized before the function
                string RetValue = "";
                RetValue = tApi.Notifications.Send(Recipient, Notification);
                return RetValue;
            }
            catch (Exception _Exc)
            {
                string excMessage = _Exc.Message;
                return null;
            }
        }