Skip to content

Instantly share code, notes, and snippets.

@PintuKumarPal
Created November 26, 2013 19:36
Show Gist options
  • Save PintuKumarPal/7664748 to your computer and use it in GitHub Desktop.
Save PintuKumarPal/7664748 to your computer and use it in GitHub Desktop.
<cfif form.body EQ "HELP">
<cfsavecontent variable="response">
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Sms>This is Test Reply for help.</Sms>
</Response>
</cfsavecontent>
<cfelseif form.body EQ "STOP">
<cfsavecontent variable="response">
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Sms>This is Test Reply for stop.</Sms>
</Response>
</cfsavecontent>
<cfelse>
<cfsavecontent variable="response">
<cfoutput>
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Sms>This is Test Thanks Reply. Reply HELP for help.Reply STOP to unsubscribe. Recvd: #xmlFormat(Left(form.body,75))#</Sms>
</Response>
</cfoutput>
</cfsavecontent>
</cfif>
<cfcontent type="text/xml" variable="#toBinary(toBase64( trim( response ) ) )#" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment