"Blacklist" Domain From All Mailings

160 views
Skip to first unread message

Jordan

unread,
Jan 7, 2011, 12:02:14 PM1/7/11
to MailChimp API Discuss
I spoke with a customer service rep regarding functionality to
"blacklist" an entire domain from receiving emails from us. I was told
that no functionality like this exists in MailChimp, but that I might
be able to achieve this using the API.

Would it be possible to write a simple web app that uses a call to the
MailChimp API with a call like "listUnsubscribe" and provide a
wildcard to scrub our list of everyone with that domain.

For example: listUnsubscribe(key, ML_ID, "*@yahoo.com", false, false,
false)

This would at least make the constant "scrubbing" of our list a one-
click operation as opposed to constant manual deletion or
segmentation.

Thanks,
Jordan

jesse

unread,
Jan 7, 2011, 12:08:34 PM1/7/11
to MailChimp API Discuss
No, as they said, no functionality like that exists with our service.

However, you could very easily use the API to cycle through your
list's subscribers and selectively unsubscribe any members with email
addresses that match whatever pattern you all specify in the code. The
Export API will also allow you to pull more selective lists using a
segment. Aside from listUnsubscribe, you may also want to consider
using these methods for that:

lists Export API - http://www.mailchimp.com/api/export/
listBatchUnsubscribe - http://www.mailchimp.com/api/rtfm/listbatchunsubscribe.func.php
listMembers - http://www.mailchimp.com/api/rtfm/listmembers.func.php

jesse


On Jan 7, 12:02 pm, Jordan <hsn.jor...@gmail.com> wrote:
> I spoke with a customer service rep regarding functionality to
> "blacklist" an entire domain from receiving emails from us. I was told
> that no functionality like this exists in MailChimp, but that I might
> be able to achieve this using the API.
>
> Would it be possible to write a simple web app that uses a call to the
> MailChimp API with a call like "listUnsubscribe" and provide a
> wildcard to scrub our list of everyone with that domain.
>
> For example: listUnsubscribe(key, ML_ID, "*...@yahoo.com", false, false,

Jordan

unread,
Jan 7, 2011, 12:16:04 PM1/7/11
to MailChimp API Discuss
Thanks Jesse.

So it looks like it would more an operation much like this:

1. Pull list from M.C. using
2. Iterate through the email addresses, and match with regex or
something of that nature.
3. Store these addresses in an array
4. Run the listBatchUnsubscribe call and supply the array of
addresses.

How would something like this perform when handling larger lists? Say
25K addresses or so? It looks like I might have to use the "start" and
"limit" parameters and run through this set of code numerous times per
list.

Jordan

On Jan 7, 10:08 am, jesse <je...@mailchimp.com> wrote:
> No, as they said, no functionality like that exists with our service.
>
> However, you could very easily use the API to cycle through your
> list's subscribers and selectively unsubscribe any members with email
> addresses that match whatever pattern you all specify in the code. The
> Export API will also allow you to pull more selective lists using a
> segment. Aside from listUnsubscribe, you may also want to consider
> using these methods for that:
>
> lists Export API -  http://www.mailchimp.com/api/export/
> listBatchUnsubscribe -http://www.mailchimp.com/api/rtfm/listbatchunsubscribe.func.php
> listMembers -http://www.mailchimp.com/api/rtfm/listmembers.func.php

jesse

unread,
Jan 7, 2011, 12:44:04 PM1/7/11
to MailChimp API Discuss
It may take a little while, but you're not going to get it done any
quicker any other way. If you truly are just targeting certain
domains, the Export API will allow you to pull the set in one go using
segment options and will be *much* quicker.


jesse
Reply all
Reply to author
Forward
0 new messages