Rohini, The spec on requestSendMessage (in 1.0 it's been replaces with osapi.messages.send() ) states that the container MAY support the message service. So the first thing to find out is if the target you've deployed on actually supports this.
The second thing is that these may not be e-mails, but handled in a manner specific to the container. -Mark W. On Aug 9, 2:21 am, Rohini Salunkhe <rohini.salun...@gmail.com> wrote: > I am able to get friend value. The only email sending part is not > working. ans so callback is not getting called > > On Aug 9, 11:19 am, Rohini Salunkhe <rohini.salun...@gmail.com> wrote: > > > > > Hi > > I want to send email thru opensocial appliation. I am using > > opensocial.requestSendMessage but its not working. It is not showing > > any error also. > > please provide link for sample application sending emails to friends. > > > here is my code. > > > <?xml version="1.0" encoding="UTF-8" ?> > > <Module> > > <ModulePrefs title="Gifts part 4 - Showing What You Got"> > > <Require feature="opensocial-0.9" /> > > </ModulePrefs> > > <Content type="html"> > > <![CDATA[ > > <script type="text/javascript"> > > function sendMail() > > { > > var recipient = document.getElementById('person').value; > > alert("Send Mail to "+recipient ); > > > var params = []; > > params[opensocial.Message.Field.TITLE] = "Title of mail - > > Hi"; > > params[opensocial.Message.Field.TYPE] = > > opensocial.Message.Type.EMAIL; > > var message = opensocial.newMessage("You have got mail > > form > > friend", params); > > > opensocial.requestSendMessage(recipient, message, > > onMailSent); > > } > > > function onMailSent() > > { > > alert("onMailSent call back function"); > > } > > > </script> > > > <div id='main'> > > <div> > > <a href='javascript:void(0);' onclick='sendMail();'>Send > > Email!</a> > > </div> > > </div> > > > ]]> > > </Content> > > </Module> > > > Thanks -- 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-...@googlegroups.com. To unsubscribe from this group, send email to opensocial-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/opensocial-api?hl=en.