Email Receipts
When sending a message, you can request that the associated receipt(s) are forwarded to the email address you specify. The following parameters are required when this feature is required:
|
api_id |
Your API id, issued by WebTEXT |
|
api_pwd |
Your API password, issued by WebTEXT |
|
txt |
Text to be sent |
|
dest |
Message Destination |
|
receipt |
Must be specified, with a value of 2. |
|
msgid |
Unique numerical id, supplied by you. It will be returned with the receipt to allow you associate the incoming receipt with its corresponding sent message. |
|
receipt_email |
The email address to which the receipt message will be forwarded. |
Example
This is a sample GET request, sending the text 'test message' to 4471234567, requesting the receipt to be sent to email address 'me@mydomain.com'
The message is sent to the intended recipient. Upon successful delivery, or failure, WebTEXT will receive a receipt from the network. The receipt will have one of two possible values:
|
1 |
DELIVERY_SUCCESS |
|
2 |
DELIVERY_FAILURE |
The resulting email will be formatted as follows:
To: me@mydomain.com
Subject: WebTEXT Receipt
From: WebTEXT <rx_forwarder@wwebtext.com>
Message-Id: <123456-123-3344@netfin.webtext.com>
Date: Wed, 13 Dec 2006 12:35:46 +0000 (GMT)
msgid:13974
destination:447123456
status:1
Desc:DELIVERY_SUCCESS
