2011-11-19 35 views
0

我有這個劇本在這裏:如何設置發送電子郵件給誰?

function MainAssistant(argFromPusher) { 
} 

MainAssistant.prototype = { 
    setup: function() { 
     Ares.setupSceneAssistant(this); 
    }, 
    cleanup: function() { 
     Ares.cleanupSceneAssistant(this); 
    }, 
    button6Tap: function(inSender, event) { 

    }, 
    contactMe: function(inSender, event) { 
     this.$.launchEmail1.launch(); 
    }, 
    launchEmail1Success: function(inSender, inResponse, inRequest) { 

    } 
}; 

我在文件中看到,您可以使用recipients,但我不知道如何使用它。我知道它是一輛嬰兒車,但我該如何使用它。 謝謝

回答

1

你會在webOS開發者論壇找到一些提示here

基本上是:

this.$.launchEmail1.setRecipients({ 
       type:"email", 
       role:1, 
       value:"[email protected]", 
       contactDisplay:"Your name" 
      }); 
this.$.launchEmail1.setSubject("I have a question!"); 
+0

啊真棒伴侶。謝謝。 –

+0

它不喜歡使用'value:「[email protected]」'信息。只是將電子郵件應用程序的「收件人」部分留空。 'this。$。launchEmail1.setSubject(「我有一個問題!」); '雖然完美。 –

相關問題