We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17016
    • 138 Posts
    Is there any Mailing/Newsletter-Software which is working fine in combination with Revo which can be recommended? (We don´t need a perfect high-professional tool for the first time.)

    Does anybody has an idea what is good for working together with Revo?

    Letti
      • 22244
      • 144 Posts
      I’m looking for the same thing...

      Any progress in your search or building? Suggestions?
        • 18373 ☆ A M B ☆
        • 3,141 Posts
        Mailchimp seems popular. http://www.mailchimp.com/

        No idea on how easy/hard it is to integrate tho.
          Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

          Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
          • 22295
          • 153 Posts
          I have implemented with mailchimp - it is quite simple, but unfortunetly i can not share the complete code as:
          a. it contains customer specific implementations for extended user
          b. it is defently more complex then what’s needed for an average implementation, as there are thousands of users - new users and modifications are synced in batches every hour (message-queue, croned). and some specific things are immediate event-driven (for specific fields, via processors).

          This info should get you started:

          1. /core/components/mailchimp/inc/MCAPI.class.php (http://www.mailchimp.com/api/downloads/) - note: i used v1.2, and v1.3 has been recently released.

          2. /core/components/mailchimp/mailchimp.config.php (you could have it as modx settings, but i prefer a config file).
          <?php
          // MAIL CHIMP CONFIG
          $mcApiKey = '**YOUR API KEY HERE***';
          $mcListId = '**YOUR LIST ID HERE***';
          // other default params
          $mcDblOptIn = false;
          $mcUpdateExisting = true;
          $mcReplaceInterests = true;
          ?>



          Example of changing user email address:
          <?php
          require_once 'inc/MCAPI.class.php';
          require_once 'mailchimp.config.php';
          
          $oldEmail = $_POST['oldEmail'];
          $newEmail = $_POST['newEmail'];
          if (empty($oldEmail) || empty($newEmail)) return;
          
          $merge_vars = array('EMAIL' => $newEmail);
          $mcApi = new MCAPI($mcApiKey);
          $returnedValue = $mcApi->listUpdateMember($mcListId, $oldEmail, $merge_vars, '', false);
          ?>
          


          Using this example - you’ll understand how to do whatever is in the API (http://www.mailchimp.com/api/1.2/)




          (partial) Example of batch creating/updating multiple users (used with cron):
          <?php
          // MAIL CHIMP CONFIG
          require_once 'inc/MCAPI.class.php';
          require_once 'mailchimp.config.php';
          
          
          $memberIdList = array();	// contains a list of all memeber id to be synced
          // ..here comes your code to populate the above array with all the user id's you want..
          if (empty($memberIdList)) return;
          
          $batchSubscribe = array();
          foreach ($memberIdList as $memberId) {	// construct batch array with member details
          	$memberUser = $modx->getObject('modUser', $memberId);
          	$memberProfile = $memberUser->getOne('Profile');
          	if (!isset($memberProfile)) return;
          
          	$memberMcArray = array(
          		'EMAIL' => $memberProfile->get('email'),
          		'FULLNAME' => $memberProfile->get('fullname'),
          		'CITY' => $memberProfile->get('city'),
          		'GENDER' => ($memberProfile->get('gender') === 1)? 'Male' : (($memberProfile->get('gender') === 2)? 'Female' : '' )
          		// ** etc...  add here all your mailchimp fields **
          	);
          	
          	$batchSubscribe[] = $memberMcArray;
          }
          
          if (empty($batchSubscribe)) return;
          
          // ** DO IT **
          $mcApi = new MCAPI($mcApiKey);
          $vals = $mcApi->listBatchSubscribe($mcListId,$batchSubscribe,$mcDblOptIn, $mcUpdateExisting, $mcReplaceInterests);
          
          // OUTPUT results with echo to a log file (it's cron'ed)
          echo "\n** ".date("d/m/y")."\n";
          if ($mcApi->errorCode){
              echo "Batch Subscribe failed!\n";
          	echo "code:".$mcApi->errorCode."\n";
          	echo "msg :".$mcApi->errorMessage."\n";
          } else {
          	echo "success:".$vals['success_count']."\n";
          	echo "errors:".$vals['error_count']."\n";
          	foreach($vals['errors'] as $val){
          		echo $val['email_address']. " failed\n";
          		echo "code:".$val['code']."\n";
          		echo "msg :".$val['message']."\n";
          	}
          }
          


          The above code was cut&paste and modified without testing, as my code is much larger and contains custom schema (i don’t really use memberProfile).. but - it should work.




          Good luck.
            • 22244
            • 144 Posts
            Mailchimp is very cool for my own newsletters but I have some clients with way over 1000 newsletters subscribers and I’m not sure if they want to pay for sending. I always used a slightly customized version of txnewsletters in modx and that (almost always) worked fine.

            Anyone got a second option or idea?
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              DADA mail; it is of course a stand-alone perl application and thus very powerful, but it was easy to make into an Evo module; I’m sure it would be just as easy to make it into a CMP or even a front-end management page.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 22244
                • 144 Posts
                Ah ok, That sounds pretty good. With front Page you mean a subscribe functionality of managing the newsletters from there?
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  Of course a form for subscribing; it’s just a matter of writing to DADA’s text file. I also meant using a private page for the mailing list manager if a CMP was too much trouble. Basically it’s just a matter of loading the DADA perl script to run in a web page, which of course it does natively anyway.
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                    • 18373 ☆ A M B ☆
                    • 3,141 Posts
                    Haven’t tried it yet, but DitsNews was released not too long ago.


                    http://modxcms.com/extras/package/?package=785
                      Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

                      Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
                      • 22244
                      • 144 Posts
                      CMP is pretty straighforward so this really sounds like a good solution.
                      Thanks!