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
-~----------~----~----~----~------~----~------~--~---

Reply via email to