PHPackages                             datastone/craft-mailchimp-sync - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. datastone/craft-mailchimp-sync

ActiveCraft-plugin[Mail &amp; Notifications](/categories/mail)

datastone/craft-mailchimp-sync
==============================

Datastone mailchimp sync

1.1.0(1y ago)023[4 issues](https://github.com/datastone-web-app/craftcms-mailchimp-sync/issues)MITPHPPHP ^8.0.2

Since Feb 18Pushed 1y agoCompare

[ Source](https://github.com/datastone-web-app/craftcms-mailchimp-sync)[ Packagist](https://packagist.org/packages/datastone/craft-mailchimp-sync)[ RSS](/packages/datastone-craft-mailchimp-sync/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

Craft CMS Mailchimp Sync
========================

[](#craft-cms-mailchimp-sync)

The Craft CMS Mailchimp Sync plugin allows you to send email addresses collected via a newsletter subscribe form on your Craft CMS website to your Mailchimp audience.

Installation
------------

[](#installation)

1. Install the plugin through the Craft CMS control panel or via the command line:

    ```
    composer require datastone/craft-mailchimp-sync
    ```

    ```
    ./craft plugin/install datastone-mailchimp-sync
    ```
2. Configure the plugin by going to "Settings → Plugins → Datastone mailchimp sync" in the Craft CMS control panel.

    - Configuring the Mailchimp API Key: Before you can use the plugin, you need to configure your Mailchimp API Key:

        make sure the api key ends with the mailchimp server eg: us3 Enter your Mailchimp API Key in the provided field and save your settings.
    - Creating a Mailchimp Audience To collect email addresses and send them to Mailchimp, you need to create a Mailchimp audience (list) and configure the plugin to use it:
3. Now you can add a newsletter subscribe form on your website that collects email addresses. When users submit their email addresses through this form, the plugin will send the email addresses to your configured Mailchimp audience.

```

    {{ actionInput('datastone-mailchimp-sync/news-letter/subscribe') }}
    {{ csrfInput() }}

    Subscribe

```

For Craft Commerce you can also add a register-newsletter checkbox on the users/save-user form with the value 'checked' To send the email to Mailchimp on user registration via the queue.

Translations
------------

[](#translations)

You can translate the flash message by following these steps:

1. Add a translations directory to your Craft CMS root folder.
2. Inside your translations directory, create a file named `datastone-mailchimp-sync.php` in your desired language directory, for example, `translations/nl/` for Dutch translations.

Here's an example of the PHP translation file (`datastone-mailchimp-sync.php`):

```
