Settings ======== Wagtail-newsletter can be configured with the following :doc:`Django settings `. Campaigns --------- ``WAGTAIL_NEWSLETTER_FROM_NAME`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: python WAGTAIL_NEWSLETTER_FROM_NAME = "Bakery Tips" When sending a newsletter, this value will appear as the email sender's name. ``WAGTAIL_NEWSLETTER_REPLY_TO`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: python 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`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: python WAGTAIL_NEWSLETTER_CAMPAIGN_BACKEND = "wagtail_newsletter.campaign_backends.mailchimp.MailchimpCampaignBackend" Specifies which :ref:`campaign backend ` to use. ``WAGTAIL_NEWSLETTER_MAILCHIMP_API_KEY`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: python 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`_. .. _from the Mailchimp website: https://us1.admin.mailchimp.com/account/api/ Recipients ---------- ``WAGTAIL_NEWSLETTER_RECIPIENTS_MODEL`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: python WAGTAIL_NEWSLETTER_RECIPIENTS_MODEL = "wagtail_newsletter.NewsletterRecipients" Specifies which :ref:`recipients model ` to use. ``WAGTAIL_NEWSLETTER_CACHE_TIMEOUT`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: python WAGTAIL_NEWSLETTER_CACHE_TIMEOUT = 300 # 5 minutes Specifies how long, in seconds, to cache information about recipients (audiences, segments, and subscriber counts).