Using Stored Recipient Lists
**Configuration Change. ** Version 4.1 and later support stored recipient lists.
In the tutorial in Generating a Transmission , you sent emails by specifying your recipients "inline". This method may be sufficient for transactional transmissions, yet it can quickly become unmanageable as your number of recipients grows. Using stored recipient lists enables you to better manage your campaigns, tailoring your messages to your unique objectives.
When you send a transmission using a stored recipient list, you reference the identifier of the list and provide the dynamic content for that specific transmission. Momentum performs any substitution required to create personalized messages for each recipient.
Sending Email Using a Stored Recipient List
In this tutorial, you will learn how to send an email using the simple stored recipient list that you created in the previous tutorial. It builds on your knowledge of the Transmissions API, expanding its use to both inline and stored recipient lists.
This tutorial assumes that you have completed the tutorial in Creating Stored Recipient Lists . A general knowledge of command line tools, JSON, HTTP protocol, and templating languages is required.
You must have a valid API key to complete this tutorial. If you do not, see Creating an API Key .
Follow these steps to send an email using a stored recipient list:
Specify your input data for the transmission.
You use a stored recipient list by specifying its identifier and the template-specific data as input data in the JSON blob that will be included in the Transmissions API call.
Using your text editor, create the following JSON file named
using_list.json. Be sure to use your information for sender address.
"subject":"Sending Email Using a Stored Recipient List",
"text":"Welcome to Momentum!\r\nThis email uses your first stored recipient list."
This example uses the transmission from the tutorial in Generating a Transmission as a starting point and replaces the "recipients" object in the transmission with the identifier that you specified when you created your stored recipient list:
Inject your message into Momentum.
You inject your message by sending a HTTP POST request to the appropriate URL with your JSON blob.
At the command line, enter the following command to inject your email:
curl -X POST http://
-H "Content-Type: application/json"
using_list.jsonis the name of your JSON file,
application/jsonspecifies the format as JSON, and
your_api_keyis your valid API key.
If successful, a response similar to the following will be displayed at the command line:
This response shows that two emails were accepted and none were rejected.
Confirm your email delivery.
Verify that each recipient received an email, then open the UI and confirm that two messages were successfully injected into Momentum (Targeted) and accepted by the ISP (Accepted). For instructions to view reports in the UI, see Using the UI for Reporting .
Congratulations! You have successfully sent an email using a stored recipient list. To learn more about using the Recipient Lists API, see the Recipient Lists API documentation available at Momentum 4 REST API.