Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,113 of 9,113 pages
About the help in other languages
All help pages

Sending newsletters safely

Send newsletters without surprises - test with the file transport, switch to SMTP or sendmail, the sender domain, the mail queue cronjobs, aborting a send, the archive, and a pre-send checklist.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/creators/website-creators/sending-newsletters.md

On this page

Sending newsletters safely

This page is for website creators and administrators who send newsletters for real. A newsletter goes to many people at once and cannot be called back, so rehearse first and switch on real sending deliberately.

The newsletter dashboard with the sending queue, bounces and the Send now and Count only buttons
The newsletter dashboard with the sending queue, bounces and the Send now and Count only buttons

Contents

  1. The transports
  2. From rehearsal to real mail
  3. How a send runs
  4. Before every send
  5. When something goes wrong

The transports

cjw_newsletter.ini [NewsletterMailSettings], overridden in settings/override/cjw_newsletter.ini.append.php:

KeyUsed for
TransportMethodCronjobthe editions cron sends
TransportMethodPreviewtest sends from the editor
TransportMethodDirectlysubscription confirmations and info mails
FileTransportMailDirwhere file writes one .eml per mail (default var/log/mail)
SmtpTransportServer, SmtpTransportPort, SmtpTransportUser, SmtpTransportPassword, SmtpTransportConnectionTypethe SMTP connection

Each method is file, smtp or sendmail. The extension's transports are separate from the site's own mail settings (10.4 Mail).

From rehearsal to real mail

  1. Rehearse with file for all three methods; read the .eml files.
  2. Switch TransportMethodPreview to smtp and send a test to your own address only.
  3. Check how it looks in several mail programs, and that links and the unsubscribe link work.
  4. Make sure your sender domain is set up at your mail provider (SPF, DKIM); otherwise mail ends up as spam.
  5. Switch TransportMethodDirectly and TransportMethodCronjob to smtp.

Keep the SMTP password in settings/override/, never in version control.

How a send runs

  1. Send schedules an edition.
  2. cjw_newsletter_mailqueue_create builds the queue: one entry per subscriber.
  3. cjw_newsletter_mailqueue_process sends what waits.
  4. The edition is archived (newsletter/archive).

php runcronjobs.php -s <siteaccess> cjw_newsletter runs both steps; the crontab of Newsletters with cjw_newsletter runs it every ten minutes.

Before every send

  • To do: Test send received and checked.
  • To do: Subject, preheader and sender name right.
  • To do: Every link works and points to the public site.
  • To do: Images have alternative texts; the mail reads well without images.
  • To do: The right list is selected.
  • To do: The send time suits your readers.

When something goes wrong

ProblemDo
Wrong edition scheduledabort it with newsletter/send_abort before cron processes the queue
Nothing is sentcheck that cron runs the parts for the right siteaccess, and the transport is not file
Mail is marked as spamsender domain records, content, and the sending server's reputation
Many bouncescheck the bounce mailbox; clean the list

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x