# Problem sending SMS or email with sample form

**URL:** <https://forum.getodk.org/t/problem-sending-sms-or-email-with-sample-form/25316>\
**Category:** Support\
**Tags:** odk-collect\
**Created:** [March 6, 2020, 3:07am UTC](https://forum.getodk.org/t/problem-sending-sms-or-email-with-sample-form/25316 "2020-03-06T03:07:43Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![safi](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/s/d26b3c/32.png) [@safi](https://forum.getodk.org/u/safi)\
**Post date:** [March 6, 2020, 9:53pm UTC](https://forum.getodk.org/t/problem-sending-sms-or-email-with-sample-form/25316/4 "2020-03-06T21:53:27Z")

</div>

Using Android 7.0 on Samsung Galaxy S8.  
SMS Application is "Messages 4.2.03.12"  
Email Application is "Gmail 8.4.8.194949231"  
I don't get any message when it crashes.

i used:  
**ex:android.intent.action.SENDTO(uri\_data='smsto:5555555', sms\_body=${message})**  
from [https://docs.opendatakit.org/launch-apps-from-collect/](https://docs.opendatakit.org/launch-apps-from-collect/)

i was concating 'smsto:5555555', storing it in a variable and equating that to uri\_date. That was causing the crash, then i copied the example from the sample form where the "uri\_data" and "sms\_body" are flipped e.g:

**ex:android.intent.action.SENDTO(sms\_body=${message}, uri\_data=${send\_to})**

That worked as expected.

So the example in the documentation needs to be fixed.

---

_[View the full topic](https://forum.getodk.org/t/problem-sending-sms-or-email-with-sample-form/25316)._
