Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
<REPLYTO>
	<ADDRESS type="URL" role="REPLYTO" value="http://sms.company.com/receive?/text=%%TEXT%%&amp;from=%%FROM%%"/>
</REPLYTO>

Custom Attributes

To use "reply to" with custom attributes

Eg customer wants to send out SMS to 3 car owners with regos: ABC123, DEF456 & HIJ789

You can set the rego in the URL query string

SMS # 1

<REPLYTO>
<ADDRESS type="URL" role="REPLYTO" value="http://sms.company.com/receive?text=%%TEXT%%&from=%%FROM%%&rego=ABC123"/>
</REPLYTO>

SMS #2

<REPLYTO>
<ADDRESS type="URL" role="REPLYTO" value="http://sms.company.com/receive?text=%%TEXT%%&from=%%FROM%%&rego=DEF456"/>
</REPLYTO>

SMS #3

<REPLYTO>
<ADDRESS type="URL" role="REPLYTO" value="http://sms.company.com/receive?text=%%TEXT%%&from=%%FROM%%&rego=HIJ789"/>
</REPLYTO>

This method can be used to set other identifying attributes; eg your own message id.

Example Document

Code Block
<!DOCTYPE DOCUMENT SYSTEM "http://localhost:8080/gateway/msg_core.dtd">
<DOCUMENT mode="NORMAL">

<SENDER password="myPassword">
	<ADDRESS type="EMAIL" role="FROM" value="my.account@company.com"/>
</SENDER>
<REPLYTO>
	<ADDRESS type="URL" role="REPLYTO" value="http://sms.company.com/receive?/text=%%TEXT%%&amp;from=%%FROM%%"/>
</REPLYTO>

<SMS>
	<HEADER></HEADER>
	<FOOTER></FOOTER>
</SMS>

<MESSAGE>
	<ADDRESS type="SMS" role="TO" value="0410123123"/>
	<BODY type="TEXT">
		<PAYLOAD type="TEXT" encoding="ASCII">text of message to send</PAYLOAD>
	</BODY>
</MESSAGE>
</DOCUMENT>

...