I am trying to make an ajax call that adds a new subscriber to my MailChimp list. I tried the solution on this thread Mailchimp subscribe using jQuery AJAX?
 $.ajax({
    url: 'http://xxxxx.us#.list-manage.com/subscribe/post-json??u=xxxxx&id=xxxx&c=?',
    type: 'GET',
    data: data,
    dataType: 'jsonp',
    contentType: "application/json; charset=utf-8",
    success: function (data) {
       if (data['result'] != "success") {
            //ERROR
            console.log(data['msg']);
       } else {
           console.log('Hooray');
       }
    }
});
However I am getting an error that says
Recipient has too many recent sign up request
I noticed that whenever I add post to the sign-up URL the error appears Even when opening the sign-up form URL from the browser
Make sure the email field being sent is all caps, so your data object might look like:
var data = { email: "[email protected]" }
When, it should be:
var data = { EMAIL: "[email protected]" }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With