I think I see the issue. In your sendEmail routine, you are using the following conditional:
if(tbEmailsCtrl != null && tbEmailsCtrl != "") { ... } else if(tbFriendsCtrl != null && tbFriendsCtrl != "") ... } requestSendMessage is called in the second block, but this is never getting executed. The reason is because you're comparing an element to a string, when you should be comparing the element's value with a string like so: if(tbEmailsCtrl != null && tbEmailsCtrl.value != "") { ... } else if(tbFriendsCtrl != null && tbFriendsCtrl.value != "") ... } FYI, we're strongly discouraging (even rejecting) applications that require users to sign up or register to use an app. You may provide a login form for users who are already members of your site and/or desire the additional features that are made possible through the integration, but users should be able to at least experience the app without a registration step. - Jason On Sep 30, 2:17 am, agulla <[EMAIL PROTECTED]> wrote: > Hi Jason, > > http://sandbox.orkut.com/Application.aspx?uid=7395150442051643318&app... > > Here is my applications XML url: > > http://preview.doxtop.com/opensocial/GetFeatMem.xml > under Invite friends tab I have my inivtation form > > On Tue, Sep 30, 2008 at 12:44 AM, Jason <[EMAIL PROTECTED]> wrote: > > > Thank you for posting the code snippet, but unfortunately I'm unable > > to reproduce the issue using the Developer Application for OpenSocial > > linked below. > > >http://www.orkut.com/Main#AppInfo.aspx?appId=845795770537 > > > Can you reply with your app's URL? Once I have it, I'll take another > > look. > > > - Jason > > > On Sep 26, 2:03 am, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > > > Hi > > > the requestSendMessage() method is not working for me to send > > > messages to the owner. I tried with a sending message to the owner > > > with the following code and it is returning me Email Denial in IE (for > > > hi5) but for orkut there is no message and no action is done, > > > > Error message: > > > > Email Denial : User has email for the app off. Userid: 316700895 (I am > > > getting this in hi5 ), In orkut I get no message. In Firefox, with hi5 > > > and orkut no message either. > > > > Whats the wrong with my code. that tries to send message to the > > > owner. > > > > function sendEmail() > > > { > > > var params = {}; > > > > var subject = ""; > > > var tbSubjectCtrl = document.getElementById('tbSubject'); > > > if(tbSubjectCtrl != null) > > > { > > > subject = tbSubjectCtrl.value; > > > } > > > > params[opensocial.Message.Field.TITLE]= subject; > > > params[opensocial.Message.Field.TYPE] = > > > opensocial.Message.Type.EMAIL; > > > > var body=""; > > > var tbMessageCtrl = document.getElementById('tbMessage'); > > > if(tbMessageCtrl != null) > > > { > > > body = tbMessageCtrl.value; > > > } > > > > var message = opensocial.newMessage(body, params); > > > > var recipient = opensocial.DataRequest.PersonId.OWNER; > > > opensocial.requestSendMessage(recipient, message, > > > sendEmail_callback); > > > > } > > > > function sendEmail_callback(obj) > > > { > > > alert("success"); > > > if(obj.hadError()) > > > { > > > alert(obj.getErrorMessage()); > > > } > > > else > > > { > > > alert("Invitation has been sent successfully"); > > > } > > > > }; > > > > Could any one please reply!!! > > > > Thanks for your early reply. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en -~----------~----~----~----~------~----~------~--~---