Settings

Wagtail-newsletter can be configured with the following Django settings.

Campaigns

WAGTAIL_NEWSLETTER_FROM_NAME

WAGTAIL_NEWSLETTER_FROM_NAME = "Bakery Tips"

When sending a newsletter, this value will appear as the email sender’s name.

WAGTAIL_NEWSLETTER_REPLY_TO

WAGTAIL_NEWSLETTER_REPLY_TO = "bakerytips@example.com"

When sending a newsletter, this value will appear as the email sender’s address. Be sure to configure your email domain to allow the newsletter service to send emails on behalf of this address, otherwise they will likely be marked as spam.

Backends

WAGTAIL_NEWSLETTER_CAMPAIGN_BACKEND

WAGTAIL_NEWSLETTER_CAMPAIGN_BACKEND = "wagtail_newsletter.campaign_backends.mailchimp.MailchimpCampaignBackend"

Specifies which campaign backend to use.

WAGTAIL_NEWSLETTER_MAILCHIMP_API_KEY

WAGTAIL_NEWSLETTER_MAILCHIMP_API_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-us13"

When using the default Mailchimp backend, this setting specifies the API key. An API key can be obtained from the Mailchimp website.

Recipients

WAGTAIL_NEWSLETTER_RECIPIENTS_MODEL

WAGTAIL_NEWSLETTER_RECIPIENTS_MODEL = "wagtail_newsletter.NewsletterRecipients"

Specifies which recipients model to use.

WAGTAIL_NEWSLETTER_CACHE_TIMEOUT

WAGTAIL_NEWSLETTER_CACHE_TIMEOUT = 300  # 5 minutes

Specifies how long, in seconds, to cache information about recipients (audiences, segments, and subscriber counts).