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.

Reply via email to