Bulk Contact Export : Email does not arrive

Had the same problem with a fresh install. I found out that you need to configure the mail queue (as correctly mentioned by @escopecz ) and then you also need to execute the mautic:contacts:scheduled_export

Here is how I got the exported contacts sent to my email:

  1. Select the contacts and export them to CSV or Excel

  2. Enable the mail queue. Check this:
    Mautic configuration settings — Mautic Documentation 0.1 documentation
    To make it quick I used Doctrine but I plan to use Redis or RabbitMQ later.

  3. In a terminal cd to your Mautic folder with the same owner. In my case I did:

cd /opt/mautic
sudo -u www-data -s

but your condiguration might require different folder and user.

  1. Exec the contacts:scheduled_export:
php /opt/mautic/bin/console mautic:contacts:scheduled_export

You should get an answer like:
Contact export email(s) sent: N
where N is the number of contacts exports you made previously. Please not this is the number of exports, not the number of contacts.

  1. Exec messenger:consume email:
php /opt/mautic/bin/console messenger:consume email

If your email DSN is configured correctly you should get N emails with the link to download the zipped file with the exported contacts.

You may later put those actions in the cron.

Hope this helps.

1 Like