how can I automatically fetch email addresses of my course students for mailchimp?

Hi,

I have several courses.

I would like that each time a new student enrolls, they are automatically subscribed to an autoresponder for that particular course, on mailchimp or ActiveCampaign. This way, I can get them on (a) a consumption & engagement sequence and (b) an upsell sequence.

I know this is not a function currently in CoursePress Pro. But what do you suggest is the best way to achieve the above goal? I can get a programmer to do it, I just need advice on the best approach. Most of all, I need an approach that will survive automatic plugin updates.

I am most grateful for any guidance on this matter.

Thanks!

David