Hi,

I've tried using requestSendMessage with multiple ids but it doesn't
work. What am I missing. Below is  the code.

function sendEmail(data){

var ids=[];
ids.push("02910936469868406081");
ids.push("03785387674149636106");

    // link to the app's canvas
    var app_canvas = "http://www.orkut.com/Main#Application.aspx?
appId=271950129446";

     // create the message
    var body = "wants you to play Loop the Loop ";
    body += "<a href='" + app_canvas + "'>Play Now!</a>";
    //body += "<center><img src='" + img_src + "' /></center>"
    var title = "Loop the Loop Invite";

    var params = {};
    params[opensocial.Message.Field.TITLE] = title;

    // specify a message type of bulletin
    params[opensocial.Message.Field.TYPE] =
opensocial.Message.Type.NOTIFICATION;

    var message = opensocial.newMessage(body, params);

    // initiate requestSendMessage
    opensocial.requestSendMessage(ids, message);
}

sendEmail();

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@googlegroups.com
To unsubscribe from this group, send email to 
opensocial-orkut+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to