Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var composeMessage = {
- create: function() {
- alert("you have clicked the compose message button");
- window.location="composeMessage.html";
- },
- send:function (){
- /*var message = "mailto:"+ escape(document.getElementById('inputTo').value)
- + "?cc=varun@abc.com"
- + "&subject=" + escape("This is my test mail")
- + "&body=" + escape(document.getElementById('textArea1').value)
- window.location.href = message;*/
- /* window.plugin.email.open({
- to: ['senthilkumar@abc.com'],
- cc: ['varun@abc.com'],
- //bcc: ['john.doe@appplant.com', 'jane.doe@appplant.com'],
- subject: 'Test Mail with attachments',
- body: 'How are you?Nice greetings from the Me.',
- attachments: [
- //'relative:/HelloWorld/www/res/icon/android/icon-36-ldpi.png'
- 'relative://HelloWorld/res/drawable/icon.png'
- ]
- });*/
- alert("Before the navigator.notification.alert");
- navigator.notification.alert("Mail Successsfully Sent!",dismissAlert,"Mail Sent","OK");
- //window.plugin.email.open();
- alert("Message Successfully sent!");
- },
- dismissAlert: function () {
- },
- reset: function() {
- alert("Are you sure you want to clear the fields?");
- document.getElementById("inputTo").value="";
- document.getElementById("textArea1").value="";
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement