Write, Bureaucrats, Administrators
4,332
edits
mNo edit summary |
mNo edit summary |
||
Line 445: | Line 445: | ||
<source lang="javascript"> | <source lang="javascript"> | ||
msg = "Dear, " + entry().field("ContactName") + | msg = "Dear, " + | ||
"\n" + entry().field("Notes") | entry().field("ContactName") + | ||
i = intent("android.intent.action.SENDTO") | "\n" + entry().field("Notes") // Form the message from ContactName & Notes | ||
i.data("smsto:"+entry().field("Phone")) | i = intent("android.intent.action.SENDTO") // Create intent object to open the app for sending | ||
i.extra("sms_body" , msg) | i.data("smsto:"+entry().field("Phone")) // Provide the phone number in format smsto:number | ||
i.send() | i.extra("sms_body" , msg) // Insert the text of the message to sms_body | ||
i.send() // Send the message | |||
</source> | </source> | ||