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