Ah, sorry- I should've read your original post more carefully!  Does
the compose message box pop up on orkut?  Which version of OpenSocial
are you including?  I was able to get your code to work in a 0.8
gadget on sandbox.orkut.com by changing the recipient line to the
following:

var recipient = opensocial.IdSpec.PersonId.OWNER;

Hope this helps,
~Arne

On Oct 2, 3:24 am, agulla <[EMAIL PROTECTED]> wrote:
> I am getting this message in hi5 but I also tested on orkut, its not sending
> messages and not giving showing any error on orkut.
>
> On Wed, Oct 1, 2008 at 8:37 PM, <[EMAIL PROTECTED]> wrote:
>
> > "Email Denial : User has email for the app off" - Sounds like you
> > found the answer to your own problem.  Which container are you using?
> > You probably need to enable email messages in a control panel
> > somewhere.
>
> > ~Arne
>
> > On Sep 25, 8:54 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 with
> > > 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");
> > >  }
>
> > > };
>
> > > can any one give me quick reply.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" group.
To post to this group, send email to opensocial-api@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-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to