Skip to content

Sending settings

Newsletter → Configuration → Settings → Sending settings

This is about how the mails go out. Not about what is in them — that is Automatic mails.

The sending settings


Embed images in mail

Off out of the box. The images are then referenced in the mail, and the mail program loads them from your server.

Switched on, the images travel inside the mail and are visible immediately.

Off (default) On
Size of the mail small larger by the images
Visible immediately no, usually only after „display images" yes
Open tracking works stops working

Embedding and counting opens are mutually exclusive

The tracking pixel of the Statistics is an image that has to be loaded from the server. If it is embedded along with the rest, nobody loads anything any more, and no open is counted.

An image that should stay excluded gets class="noreplace".


Cron system

Sending runs in portions, triggered by a cron.

Choice
WordPress internal Default. WP-Cron, triggered by page views
External A real cron job on the server calls a file

Sending interval

Appears only with WordPress internal: Every 15 minutes, Every 30 minutes or Hourly (default).

The interval is an upper bound, not a promise. WP-Cron only runs when somebody visits your website. On a site with little traffic even „every 15 minutes" sends only while someone is there. If you need it reliably, choose External.

With External, sending only happens when someone calls the address below the field — WP-Cron stays quiet so that the same send does not run twice.

Cron system set to "External", with the address below

The address goes through WordPress and ends in a key. Without it, or with a wrong one, nothing happens. Treat the address like a password: whoever knows it can trigger the due send early, but cannot read or change anything. The key is not included in the file from Settings backup; it can be regenerated under Maintenance.

WP-Cron depends on page views

On a site nobody visits for days, it does not run. The newsletter then sits in the queue — without an error message.

If you send regularly and have few visitors, set up a real cron job. With most hosts you can do that in the customer area as "call URL"; enter the address from the field there. In a crontab it looks like this:

*/5 * * * *  wget -q -O /dev/null "https://your-domain.test/wp-admin/admin-post.php?action=wpng_cron&schluessel=…"

Then set the field to External.

Pro and Enterprise additionally show the previous address below it, cron.php in the plugin folder. It keeps working, so a cron job from before 2.0 does not need to be changed. The free edition does not have it.

Last cron run is information: when the plugin's cron last ran. If the value stays put while a send is waiting, you have found the cause.

Newsletters sent per run

How many mails go out per cron run. Default 200.

With an hourly cron that is up to 4,800 mails a day. If that is not enough, do not simply raise the value: a run the server aborts after 30 seconds stops halfway. A more frequent external cron is better.

How long a run takes

The time per mail is set by your mail server, not by the plugin: connection, login and its own checks before it accepts the mail. Over an SMTP account that is easily one to three seconds per mail.

Since 2.1.0 a send run keeps the connection open instead of building it anew for every mail. Over a usual SMTP account a run of 200 mails therefore takes a good minute instead of a good three.

That changes nothing about the default: a good minute is still above the 30 seconds many hosts grant a single request. The advice below stands unchanged.

If the send gets stuck

Set the value lower, not higher. 50 is a good second attempt, 25 with very tight hosts.

Also ask your host about the permitted number of mails per hour. Many packages have one. Anything above it the server rejects — wpng tries again later and records the state in the delivery log. Nothing is left behind: after three rejections the run ends, and the rest of the queue goes out in the next one.

A batch size below the limit is still better. Then the rejections do not arise at all, and no mail risks being given up after the sixth attempt.


Mail engine

Choice
WP mailer Default. The route your website takes for all its mail anyway
PHP mailer (optionally SMTP) The plugin builds the connection itself

Take the WP mailer if you use an SMTP plugin or if your website's mail works. The newsletter then takes the same route as every other mail.

Take the PHP mailer if you want to use an SMTP account just for the newsletter.

WP mailer PHP mailer
SMTP plugin applies yes no
Credentials in the SMTP plugin here, password encrypted
„HTML and text mail" both parts both parts
Priority of the newsletter is not set is set
Embedding images works works

One peculiarity of the WP mailer

An SMTP plugin can override your sender. wp_mail() applies its filters after reading the sender header. If the mailbox shows a different sender than you configured, that is the cause.

The third route is gone

Up to 1.1.4 there was MIME mailer (up to PHP 5.6), and that was the silent default for anyone who had never configured anything. It was dropped in 2.0: it ended in the same mail() function as the WP mailer, brought along its own library from 2005 and was the only place where the plugin assembled a parameter for a system command.

On update it is switched to the WP mailer, and you get a message about it in the backend. The sender stays the same.


SMTP

The following fields appear only with the PHP mailer.

Field
Use SMTP server Without the checkbox the PHP mailer sends over the server's mail()
SMTP host The server, e.g. mail.your-host.test. A different port is appended with a colon: mail.your-host.test:465
Encryption Automatic, STARTTLS, SSL/TLS or None. See below
SMTP auth Log in with user name and password. Almost always necessary
SMTP username
SMTP password

The password field stays empty

If a password is stored, the form says so — the field itself stays empty. Only enter something if you want to change the password. There is a button next to it for removing it.

Up to 1.1.4 the password sat in clear text in the source of this page — visible to anyone who saved it or looked over your shoulder. Since 2.0 it lies encrypted in the database and appears in no field.

Encryption and port

The choice decides how the connection to the mail server is secured — and which port the plugin uses when the host does not name one:

Choice Port when unset
Automatic Default. STARTTLS if the server offers it 25
STARTTLS The connection starts unencrypted and switches over 587
SSL/TLS Encrypted from the first second 465
None Unencrypted. Only in a network you control yourself 25

Your host will tell you the port and the type. When in doubt: 587 with STARTTLS, which almost everyone offers. A different port is appended to the host (mail.your-host.test:2525); it overrides the default in the table.