Last active
April 6, 2018 09:40
Email_dialog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function clickedSendMail() { | |
Ti.API.trace("[pocBlobAsAnAttachment] >> [clickedSendMail]"); | |
var blobObjectOfWebView = $.myWebView.toImage(); | |
Ti.API.debug("[pocBlobAsAnAttachment] >> [init] >> blobObjectOfWebView >>", blobObjectOfWebView); | |
var emailDialog = Ti.UI.createEmailDialog({ | |
html : true | |
}); | |
emailDialog.subject = "Test mail to check Blob attachment"; | |
emailDialog.toRecipients = ['Email']; | |
emailDialog.messageBody = '<b>Blob file as an attachment</b>'; | |
emailDialog.addAttachment(blobObjectOfWebView); | |
emailDialog.open(); | |
} | |
$.index.open(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Alloy> | |
<Window class="container" layout="vertical"> | |
<WebView id="myWebView" height="70%" width="100%" url="http://www.appcelerator.com"/> | |
<Button id="btnSend" title="Send Mail" color="White" top="20" backgroundColor="red" height="19%" width="100%" onClick="clickedSendMail"></Button> | |
</Window> | |
</Alloy> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment