I am trying to get notification if a mailchimp signup fails. I managed to get the send_mailchimp_error_email function installed and can get an email, but I cannot figure out how to get the MC error message into my notification.
I tried setting up a data array that includes the error message and pass that to the notification, but it isn[t working.
How can I embed the error message in the notification?
(I also notice the function documentation says a variable is “$error”, but in the function example it’s “$error_message”, which was a little confusing.)
Hi John. I have done this for the Constant Contact Add-On. You can find the code I used here:
Update to reference mailchimp
rather than constantcontact
and you should be good to go. Let us know if you need anything else.
Thank you! I had it all, but couldn’t figure out how to form the data array. Thank you!
1 Like