Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to send campaign emails to some specific users? #299

Open
Nishi1 opened this issue May 21, 2020 · 1 comment
Open

How to send campaign emails to some specific users? #299

Nishi1 opened this issue May 21, 2020 · 1 comment

Comments

@Nishi1
Copy link

Nishi1 commented May 21, 2020

I am able to send emails to all users using gibbon.campaigns(campaign_id).actions.send.create
Can somebody tell me how to send custom created email campaign to some specific user email addresses?

@mattbatman
Copy link

mattbatman commented May 24, 2020

I'm trying to work through the same thing, I think. I'd like to make a POST request to https://xxx.api.mailchimp.com/3.0/automations/xxx/emails/xxx/queue. Even though this sends a specific email from a campaign to a specific user, all the language is different.

This seems to work for me with Gibbon:

# first, add the user to the list
gibbon.lists(list_id).members.create(body: {
    email_address: email_address_from_form,
    status: "subscribed"
})

# next, send the campaign email
gibbon.automations(automation_id).emails(email_id).queue.create(body: {
    email_address: email_address_form_form
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants