By default AcyMailing will install a subscription module so you can simply publish it and configure it to get a subscription form on your website.
But if you want to add a subscription form on another website or on your facebook page, then you will need an external subscription form.
iframe integration
If your other website enables you to include an iframe, the easiest way to embed your subscription form on that other website is to use this method:
Create an AcyMailing subscription module on your own website and configure it the way you want (with captcha, extra fields, terms and conditions...) Copy the ID of that module and then on your other website, create an iframe to display this module:
Please make sure to replace your website url, your module id and the iframe height with the right values.
We recommend you to set the module redirection to "ajax".
With this system you can integrate your Newsletter subscription module to your Facebook page, so that all your fans can subscribe to your newsletter directly from Facebook.
Replace YOURWEBSITE by the url of your own website!
YOUR_REDIRECT_URL by the url of your redirect url
YOUR_LISTS by your lists IDs separated by comma. For example if you want the user to be subscribed to your list ID 3 and ID 4 then you should specify 3,4
Add a captcha to your form
If you use one of our commercial versions, you can turn ON the captcha feature on the AcyMailing configuration page and then add a captcha to your subscription form:
If you enabled the captcha on your website but you want to use the external subscription form without captcha, then insert the "security key" (displayed on the AcyMailing configuration page, in the captcha area) in an hidden field in your form:
If you want to add an image to refresh the captcha picture, add the following code where you want to display it in the previous code. Note that you need to add the URL of the picture you want to use (replace YOUR_RELOAD_PICTURE):
Since AcyMailing 3.6.0, you can edit your custom field and directly copy/paste the html code to include it in your external subscription form.
Display your lists on the form
If you want the user to select the lists he should be subscribed to, you can display them on your form with that code. Please make sure the IDs of these lists are not in the hiddenlists parameter.
<input type="checkbox" name="subscription[]" value="3" />My List ID 3<br />
<input type="checkbox" name="subscription[]" value="7" />My List ID 7<br />
<input type="checkbox" name="subscription[]" value="14" />My List ID 14<br />
Add a "terms and conditions" checkbox
You can add a "terms and conditions" checkbox using this code: