Subscription via URL
DescriptionThe AcyMailing subscription via URL enables you to integrate AcyMailing with other components such as Fabrik, ChronoForms, RSForm!Pro and other form components.
Subscription via URLYou have to redirect the user to this url : index.php?option=com_acymailing&ctrl=sub&task=optin&hiddenlists=YOUR_LISTS_ID&user[email]=YOUR_EMAIL
You can add other parameters in the url which are optional:
Test the subscription via URLBefore integrating the subscription via URL in your form component, please make sure you tested it independently and you obtained the expected result. Step 1: Get your lists IDGo on the Lists management page on the AcyMailing back-end. On this listing you will see all your lists and you will be able to pick up the list ID. (in red in the following screenshot)
We will create a URL to subscribe the user to lists ID 1 and 4 (New versions & Security Updates and Possible Affiliate).
Step 2: Build your urlOpen a new window/tab on your browser and enter the url : http://www.yourwebsite.com/index.php?option=com_acymailing&ctrl=sub&task=optin&hiddenlists=1,4&user[email]=yourname@example.com&user[name]=yourname Please make sure to replace www.yourwebsite.com by your own url. In our example we will subscribe the user to lists 1 and 4, that's why we added the argument hiddenlists=1,4. After making sure the user has been properly subscribed to the lists (see step 3) , you can add a redirect link to this url and test again : http://www.yourwebsite.com/index.php?option=com_acymailing&ctrl=sub&task=optin&hiddenlists=1,4&user[email]=yourname@example.com&user[name]=yourname&redirect=http://www.google.com
Step 3: Check the subscription from the back-endGo to your AcyMailing user management screen on the back-end. You should see a new user added and this user should be subscribed to the lists 1 and 4. If it's not the case, please make sure your lists are published with a correct access level and test again without redirect url.
Use the subscription via URL in your NewslettersYou can use the subscription via url in a Newsletter or any other e-mail to ask your user to subscribe to an other list. Create a link in your Newsletter and specify the url: index.php?option=com_acymailing&ctrl=sub&task=optin&hiddenlists=YOUR_LIST_ID&user[email]={subtag:email} Please don't forget to replace YOUR_LIST_ID by the ID of your list. As the tag {subtag:email} will be automatically replaced by the receiver e-mail during the send process, each user will receive his own subscription link.
Related Articles
Last Updated on Tuesday, 25 January 2011 00:15
|





