Skip to content

Address verification: check an audience's emails before sending

Describes Newsletters 0.8.0.

The Address verification page checks every address a broadcast audience would mail and sorts them into valid, invalid and uncertain, so you can clean a list before sending to it.

Where to find it

In the admin sidebar, open Newsletters, then Address verification (/admin/newsletters/verification). You need the See recipients permission, which sits under Newsletters in a role’s permissions.

The page needs a verification engine supplied by your site; PhoenixKit Newsletters doesn’t ship one. Without one, the page only shows a notice that the engine is not available. If the engine is switched off, it says Address verification is switched off.

Checking an audience

  1. Under Audience, choose Roles and tick roles, or CRM list and pick a list (CRM list appears only when the CRM module is installed). The audience is worked out the same way a send works it out.
  2. The page shows how many sendable addresses there are. Click Verify the list.
  3. While it runs, a bar shows Verifying: … of …. You can leave the page; the check runs in the background.

When an engine checks mail servers directly, some addresses can wait for that step, and the page says so.

Reading the results

The counters show Valid, Invalid, Temporary problem, Not sure and Not checked. Click one to filter the table to it, or use the status menu.

The table lists each Email with its Status, the Reason, Flags (Free for a free mail provider, Role for an address like info@, Disposable for a throwaway address) and when it was Checked.

What it doesn’t do

  • It doesn’t change the audience or block anyone from receiving a broadcast. Remove or fix addresses in the CRM or the user accounts yourself.
  • It doesn’t check addresses that are already unsubscribed or without an email.

For developers

Point the module at your engine in config/config.exs:

config :phoenix_kit_newsletters, :email_verification_engine, MyApp.AddressVerification

The engine implements PhoenixKit.Newsletters.VerificationEngine. If the Oban queue the engine uses isn’t configured, the page warns that a started batch would never run.