# Gravity forms Mailchimp api error \[RESOLVED\]

**URL:** <https://community.gravityforms.com/t/gravity-forms-mailchimp-api-error-resolved/17273>\
**Category:** Get Help\
**Tags:** gform\_slug\_error, gform\_notification\_events, mailchimp\
**Created:** [April 15, 2024, 5:46pm UTC](https://community.gravityforms.com/t/gravity-forms-mailchimp-api-error-resolved/17273 "2024-04-15T17:46:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnmx](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@johnmx](https://community.gravityforms.com/u/johnmx)\
**Post date:** [April 15, 2024, 5:46pm UTC](https://community.gravityforms.com/t/gravity-forms-mailchimp-api-error-resolved/17273/1 "2024-04-15T17:46:01Z")

</div>

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.)

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [May 1, 2024, 8:00pm UTC](https://community.gravityforms.com/t/gravity-forms-mailchimp-api-error-resolved/17273/2 "2024-05-01T20:00:18Z")

</div>

Hi John. I have done this for the Constant Contact Add-On. You can find the code I used here:

> **[Constant Contact Error Notification](https://d.pr/snqzTZ/)**
>
> Shared with Droplr

Update to reference `mailchimp` rather than `constantcontact` and you should be good to go. Let us know if you need anything else.

---

<div class="post-metadata">

**Author:** ![johnmx](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@johnmx](https://community.gravityforms.com/u/johnmx)\
**Post date:** [May 1, 2024, 9:09pm UTC](https://community.gravityforms.com/t/gravity-forms-mailchimp-api-error-resolved/17273/3 "2024-05-01T21:09:30Z")

</div>

Thank you! I had it all, but couldn’t figure out how to form the data array. Thank you!

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [May 1, 2024, 9:24pm UTC](https://community.gravityforms.com/t/gravity-forms-mailchimp-api-error-resolved/17273/4 "2024-05-01T21:24:04Z")

</div>


