简体   繁体   中英

Send a campaign more than once in MailChimp

I am trying to send an email to users based on their status. The first email needs to be sent after 2 hours, and a second one after 24 hours.

I am running a PHP script that checks for users who belong to a state and I sent the first email to them using the send API call, the problem now, is that when the script runs again (a crobtab that runs every 20 mins), I cannot send the campaign again since apparently you can send a campaign only once.

I am putting the cid directly in my PHP code, so I cannot go and edit the code everytime I want to run the crontab!

Do I have to use the campaigncreate() method everytime the crontab runs? https://apidocs.mailchimp.com/api/2.0/campaigns/create.php

It would be better if there is an easier way, since an account cannot have more than 32,000 campaigns.

Mailchimp is a bulk email service and isn't designed to send transactional emails.

You should instead try to use Mandrill , a transactional email service built by the same company. And their API is quite simple to use.

Then, you can indeed run your PHP script every hour (or x minutes) to send emails based on user status.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM