AcyMailing
Our siteForumBlog
Latest version
Latest version
  • AcyMailing documentation
  • How to renew AcyMailing license?
  • How to switch AcyMailing license plan?
  • Setup AcyMailing
    • Update from AcyMailing 5
    • Installation
      • Download AcyMailing
      • Install AcyMailing
      • Update AcyMailing
      • Switching from Starter to a paid version
      • Uninstall AcyMailing
    • Move AcyMailing between websites
      • Migrate between Joomla! and WordPress
      • Move between two WordPress websites
      • Switch from Joomla 3 to Joomla 4/5
    • Configuration
      • License
      • Mail settings
        • Set up your DKIM : DomainKeys Identified Mail
        • Set up Oauth 2.0
      • Queue process
      • Configure your send process
      • Subscription
      • Bounce handling
      • Data collection
      • Security
      • Languages
    • Step by step guide
    • Multilingual websites
      • Translate AcyMailing
      • Custom translation
    • Subscription to your lists
      • Subscription form - Joomla
      • Subscription form - WordPress
      • Other subscription methods
      • RSForm!Pro integration
  • External sending methods
    • AcyMailing Sending Service
    • Amazon SES
    • ElasticEmail
    • Mailgun
    • Postmark
    • SendGrid
    • Brevo SMTP Relay
    • Brevo / Sendinblue (Legacy)
  • Main pages
    • Dashboard
    • Subscription forms
      • Subscription Form
      • Header
      • Footer
      • Popup
      • Shortcode (Wordpress)
    • Subscribers
      • Create a subscriber
      • Import subscribers
      • Export subscribers
    • Custom fields
      • Create Custom Field
      • Examples
    • Lists
      • Create a list
    • Segment
      • Edition
    • Emails
      • Creation of a campaign
        • Choose a template
        • Edit email
        • Recipients
        • Segment
        • Send settings
        • Tests
        • Summary
      • A/B testing
      • Automatic campaigns
      • Follow-up
        • Trigger
        • Condition
        • Emails
        • Summary
      • Special mails
    • The email editor
      • Tenor integration
      • Unsplash integration
    • Templates
      • Create a template
      • Import a template
    • Email overrides
      • Edition
    • Automations
      • Information
      • Conditions
      • Actions
      • Action targets
      • Summary
    • Scenario
      • Create a new Scenario
      • Performances
    • Queue
    • Statistics
      • Overview
      • Detailed Statistics
      • Click map
      • Links details
      • User click details
      • Statistics per list
    • Add-ons
    • Mailbox actions
      • Mailbox actions
        • Edition
      • Bounce rules
        • Configuration
        • Listing
        • Create bounce rules
  • Advanced
    • Send follow-up messages based on subscription
    • Let site users use AcyMailing
      • List management
      • User management
      • Campaigns management
    • Show an archive of the sent newsletters
    • Show a profile edition form on your site
    • Partner platform
      • Log in
      • Dashboard
      • Single domain details
  • Integrations
    • Settings
    • Joomla add-ons
      • Joomla articles
      • CB Subscriptions
      • Community Builder
      • Community Quiz
      • Community Surveys
      • Contacts
      • Dashboard Quick icon
      • Docman
      • DPCalendar
      • EasyBlog
      • EasyProfile
      • EasySocial
      • Event Booking
      • FLEXIcontent
      • HikaShop
      • iCagenda
      • JCal Pro
      • jDownloads
      • JEvents
      • JSW CRM
      • JTicketing
      • K2 Content
      • Membership Pro
      • Module
      • PayPlans
      • Phoca Download
      • RSEvents!Pro
      • Seblod
      • Shika
      • VirtueMart
      • Zoo
    • WordPress add-ons
      • WordPress posts and pages
      • Advanced Custom Fields (ACF)
      • Business Directory
      • Contact Form 7
      • Easy Digital Downloads
      • EventON
      • Events Manager
      • Gravity Forms
      • Learndash
      • MemberPress
      • Modern Events Calendar
      • The events calendar
      • Ultimate Member
      • Uncanny Automator
      • WooCommerce
    • All websites add-ons
      • Articles, posts and pages from WordPress and Joomla
      • Automation - export action
      • Create user
      • Custom headers
      • RSS and Atom feeds
      • Table of contents generator
      • Universal filter
    • Zapier
  • Developers
    • Developer Documentation
    • Making a custom add-on
      • Execute custom script on specific AcyMailing actions
      • Insert a dynamic text in an email for Joomla
      • Insert a custom block in an email for Joomla
      • Insert a dynamic text in an email for WordPress
      • Insert a custom block in an email for WordPress
    • Custom script using our code
    • Create a page override
    • Joomla quickstart package with AcyMailing
    • Customise inserted content
  • FAQ
    • Could not instantiate mail function - AcyMailing
    • Spam issue
    • Your send process is slow?
    • Compatibility issues
    • Mail archive not displaying special characters
Powered by GitBook
On this page
  1. Setup AcyMailing
  2. Subscription to your lists

Other subscription methods

See all other subscriptions methods for AcyMailing

PreviousSubscription form - WordPressNextRSForm!Pro integration

Last updated 9 months ago

The easiest way to let users subscribe to your newsletters is to activate the default AcyMailing subscription form (WP Widget or Joomla module), but in some cases you may need other solutions.

Subscribe link in an email

You can easily insert a direct subscribe link in your emails with the dynamic text feature. First, insert a text zone then click in it:

On the right of the editor, the dynamic text selection zone appears. Under the tab "Subscription", click the "Insert a subscribe link in your email" option, select the lists you want the user to be subscribed to when clicking the link, then click the "Insert dynamic text" button.

You can modify the text of the link with the "Text" option, "Subscribe" is written by default.

Subscription via URL

First of all, make sure to allow non logged-in users to subscribe in the configuration page, tab "Subscription", option "Allow user data modifications without identification"

If you want to use a direct subscription link somewhere on your site, or even another site, you can use this link:

Joomla websites

https://www.example.com/index.php?option=com_acym&ctrl=frontusers&task=subscribe&hiddenlists=1,3&user[email]=email@example.com

WordPress websites

https://www.example.com/index.php?page=acymailing_front&ctrl=frontusers&task=subscribe&hiddenlists=1,3&user[email]=email@example.com&action=acymailing_frontrouter&noheader=1

In these links, you have to replace "1,3" by the IDs of the lists (you can see them on the AcyMailing contact lists' listing page on the right). email@example.com has to be replaced by the email address of the user.

For new users, you can add "&user[confirmed]=1" to make sure they're created as confirmed, if this is what you want to do.

Redirection after subscription

You can add a "redirect" parameter to your link so that AcyMailing will subscribe the user and then redirect the user to the specified url. Example : &redirect=http%3A%2F%2Fwww.google.com All submitted data should be in utf-8 and url-encoded (using the php function urlencode() for example).

  • = should be replaced by %3D

  • & should be replaced by %26

  • ? should be replaced by %3F

  • / should be replaced by %2F

  • : should be replaced by %3A

External subscription form

Sometimes you need to create a form on another website. If this is your case, you can use the following code:

Joomla websites

<form action="https://EXAMPLE/index.php" method="post">
	<table class="acymailing_form">
		<tr>
			<td><label for="user_name">Name</label></td>
			<td><input id="user_name" type="text" name="user[name]" value="" /></td>
		</tr>
		<tr>
			<td><label for="user_email">E-mail</label></td>
			<td><input id="user_email" type="text" name="user[email]" value="" /></td>
		</tr>
		<tr>
			<td colspan="2"><input class="button" type="submit" value="Subscribe" name="Submit" /></td>
		</tr>
	</table>

	<input type="hidden" name="ctrl" value="frontusers" />
	<input type="hidden" name="task" value="subscribe" />
	<input type="hidden" name="redirect" value="https://YOUR_REDIRECT_URL" />
	<input type="hidden" name="hiddenlists" value="YOUR_LISTS" />

	<input type="hidden" name="option" value="com_acym" />
</form>

WordPress websites

<form action="https://EXAMPLE/index.php" method="post">
	<table class="acymailing_form">
		<tr>
			<td><label for="user_name">Name</label></td>
			<td><input id="user_name" type="text" name="user[name]" value="" /></td>
		</tr>
		<tr>
			<td><label for="user_email">E-mail</label></td>
			<td><input id="user_email" type="text" name="user[email]" value="" /></td>
		</tr>
		<tr>
			<td colspan="2"><input class="button" type="submit" value="Subscribe" name="Submit" /></td>
		</tr>
	</table>

	<input type="hidden" name="ctrl" value="frontusers" />
	<input type="hidden" name="task" value="subscribe" />
	<input type="hidden" name="redirect" value="https://YOUR_REDIRECT_URL" />
	<input type="hidden" name="hiddenlists" value="YOUR_LISTS" />

	<input type="hidden" name="page" value="acymailing_front" />
	<input type="hidden" name="action" value="acymailing_frontrouter" />
	<input type="hidden" name="noheader" value="1" />
</form>

In both cases, don't forget to replace the following strings:

  • EXAMPLE: by the website on which AcyMailing is installed, it will collect the form's data

  • YOUR_LISTS: by the IDs of the lists separated by a coma. The user won't see these lists.

  • YOUR_REDIRECT_URL: this input is actually optional, you can specify any URL here

Add custom fields

Custom fields can also be added in the form. You need to get the ID of the field from the custom fields listing (or in the database column "id" of table "xxx_acym_field"). Then use it to replace id in customField[id]:

<tr>
	<td><label for="user_field">My field</label></td>
	<td><input id="user_field" type="text" name="customField[id]" value="" /></td>
</tr>

Display the lists

You can let the users choose their lists by adding inputs like this:

<input type="checkbox" name="subscription[]" value="3"/>My List with ID 3<br/>
<input type="checkbox" name="subscription[]" value="7"/>My List with ID 7<br/>
<input type="checkbox" name="subscription[]" value="14"/>My List with ID 14<br/>

The captcha blocks the form

If you activated the captcha in the AcyMailing configuration page, tab "Security", you will need to add the following input in your form with the "Security key" value of the same page:

<input type="hidden" name="seckey" value="SECURITY_KEY_VALUE" />

Adding this input won't add an invisible recaptcha, it's just a security to prevent anyone from creating an external form redirecting to your website.