CoursePress Enrollment Emails: Multiples Sent Within Minutes of Each Other

Hi -

Months ago I asked for some insight on automated enrollment code in this thread:

That was abandoned by the developer it was assigned to, as far as I can tell.

I implemented the code it refers to (found here: and it seems to work - if someone purchases a subscription, they are enrolled in the course automatically.

However, Coursepress sends at least 5 "you are now enrolled" emails for each course in rapid-fire upon subscription.

And if a person simply signs up for the free course, they receive multiple and unending enrollment emails every time they log in. This isn't even something we customized, so I have no idea why this is happening.