Skip to content

Signing up from another website

You run several websites but one newsletter: a blog, a product page, a landing page — and the subscribers should all end up in the same list.

There is a separate, free plugin for that: maennchen1 Newsletter Germany Signup from the WordPress plugin directory. It puts a signup form on the other website and passes the address on to your newsletter website through the REST interface. The confirmation mail, the subscriber list and the consent record stay where they are.

Website A (blog)                      Website B (newsletter)
┌──────────────────────┐              ┌──────────────────────┐
│ Signup plugin        │  address +   │ wpNewsletterGermany  │
│ signup form          │ ───────────▶ │ Pro 2.2.0 or later   │
│                      │  consent     │ confirmation mail,   │
│ stores nothing       │              │ list, record         │
└──────────────────────┘              └──────────────────────┘

What you need for it

On the newsletter website: wpNewsletterGermany Pro or Enterprise 2.2.0 or later with the REST interface module switched on. The free edition does not have the interface.

On the other website: WordPress 6.7 or later and PHP 8.1 or later. wpNewsletterGermany does not have to be installed there.


1. On the newsletter website: create a signup key

Newsletter → Settings → Modules → REST interface, section Additional keys. Create a key there

  • with the permission Subscribe and no other,
  • with the groups the signups from this form should go into.

You get a key ID (16 characters) and the key itself (64 characters). Both stay in that section afterwards, the key in a field to copy from.

Do not use the main key of the interface

The main key would allow reading and changing subscribers. It would then sit on a website that needs it for none of that. The plugin will not accept it either: it checks that the key may do nothing but subscribe.

The group and the confirmation mail hang on the key, not on the form. That is deliberate — the website that holds the subscribers decides what happens to a signup.


2. On the other website: set the plugin up

Install the plugin, then go to Settings → Newsletter signup.

Field
Website with wpNewsletterGermany The home address of your newsletter website, with https://
Key ID The 16 characters from above
Signup key The 64 characters. After saving, the page only states that one is set

The top of the page then says whether the connection works — with the version of the counterpart and the time of the last check. If something is wrong, the message says what is missing.

Keeping the key out of the database

Instead of entering it you can put NGSIGNUP_KEY_ID and NGSIGNUP_KEY into wp-config.php. Then it is neither in the database nor in its backups.

As long as nothing is entered, the form shows nothing

Visitors then see nothing at all, logged-in administrators see a note. Nor does the plugin contact your newsletter website before the address and the key are there.


3. Placing the form

Way
Block „Newsletter signup" The main way, in block widget areas too
Shortcode [ngsignup_form] For classic themes, page builders and text fields

The form follows your theme. In the block you can set the arrangement (as space allows, in one row, one below the other) and, for the input fields, the border colour, background, border width and corner radius; empty values leave that to the theme.

Asking for more than the email address

Under Fields each field can be set to Off, Optional or Required: salutation, first name, last name, street and number, postcode, city.

wpNewsletterGermany takes filled-in fields over only for new subscribers. Anyone already on the list keeps what is stored there — a signup from outside overwrites no data you have curated.

You enter the choices for the salutation in the plugin, separated by |. Best use the same ones as under Newsletter → Settings → Form on the newsletter website, otherwise your list ends up with two spellings side by side.

The texts

Heading, introduction, placeholder, button, note, the messages after sending and the consent wording can all be set. Fields left empty take the greyed-out suggestion.

The consent wording is the important one: it goes into the consent record of your newsletter website with every signup. It should say what the visitor actually reads at the form.


4. Protection against misuse

Always on, without an external service and without picture puzzles: a hidden field, a signed time stamp, a minimum time between loading and sending, and limits per address and per website.

On top of that, what you can switch on:

Check the origin Only accepts signups that come from this website. On by default
Proof of work The browser solves a small task before sending. Costs a bot computing time and the visitor a moment. Needs https
DNS check Checks whether the domain of the address can receive mail at all
Blocklist Domains or address patterns you enter yourself, such as disposable services
Limit per sender Counts per IP address as well

The answer is always the same

Whether the address is new, already on the list or was rejected — the visitor gets the same message. Otherwise the form would reveal who receives your newsletter.

The limit per sender extends your privacy policy

For it the plugin stores a non-reversible check value of the IP address for one hour. The IP itself is not stored. It is off by default; if you switch it on, name it in your privacy policy — the suggested text under Settings → Privacy adapts by itself.

Under Log you find the last signups with time and result, plus the rejections by reason. Neither email nor IP addresses appear there; who signed up is something you see on the newsletter website.


What has to go into your privacy policy

Meant here is the one of the other website, where the form sits. The plugin puts a matching suggestion under Settings → Privacy; it follows your settings.

It has to cover:

  • that the address entered is passed on to your newsletter website, naming it and its operator;
  • purpose and legal basis — consent under Art. 6(1)(a) GDPR —, the confirmation by email and the withdrawal through the link in every mail;
  • that the time and wording of the consent are recorded there;
  • with the limit per sender switched on: the check value of the IP address for one hour.

Two controllers need a contract

If the two websites belong to different controllers, the newsletter website is a recipient of personal data. That needs either a data processing agreement or an arrangement on joint controllership. Which of the two is the right one depends on who decides about the data — a question for your legal advice, not for this manual.

On the newsletter website itself nothing changes about what is stored: the subscribers arrive there as they would through any other form.


When it does not work

The form does not appear. Address and key are not entered, or the connection check failed. Visitors then see nothing, you as an administrator see a note.

The connection check fails although the address is right. WordPress only connects to public addresses. If both websites sit on the same server or in a private network, the host has to be allowed through the filter http_request_host_is_external.

The key is not accepted. Then it may do more than subscribe. Create a new one on the newsletter website, with the permission Subscribe and no other.

Signups do not arrive. Look at the log on the settings page. It gives the result of each signup, such as 202 accepted.


Next