Recipient
The <recipient>
element is where you add recipients directly to the XML file, if you have decided to use this option.
The <recipient>
element is:
-
A child of the New_recipients section
You can use
<recipient>
or a CSV_file to add new recipients. -
Positioned within the
<new_recipients>
section of the XML instructions file
Use
Use the following format to add recipients directly to the XML:
field1 contentfield2 content...
Add one <recipient>
element for each recipient.
Note:
While only one field is required to identify an email or SMS recipient, three fields are needed to define the recipient of a Push campaign. See the Example below and Push delivery working example for more details.
The <field>
tags in the above example represent the actual field names, which must be selected from and match those used in the database. However, field name matching is not case sensitive, for example, you can use Name or name.
Examples:
Send a email to somebody@somedomain.com
<recipient><email>somebody@somedomain.com</email><firstname>field2A</firstname>...</recipient>
Send a sms to 0039448374932
0039448374932
Send a push notification to the Apple application ‘My Application’ to the recipient ‘APN_Device_ID_Token’
APN_Device_ID_TokenAPNMy Application
Send a push notification to the Google application ‘My Application’ to the recipient ‘GCM_Device_ID_Token’
GCM_Device_ID_TokenGCMMy Application
See Filtering and added recipients for more about how the user database is filtered to match new recipients.
Next page:
Related Pages:
- Common sections and elements
- Newsletter
- Recipients section
- Retry
- New_recipients
- Test_recipients
- Filter
- Delivery section
- Notes section
- Message section
- Building a campaign with XMLDelivery
Also see:
- Filtering and added recipients
- Contactlab section
- Using XMLDelivery
- Does XMLDelivery match your needs?
- Setting up XMLDelivery
- Working examples