External form sending multiple emails

Permalink
I'm working on 8.4.4 in XAMPP.

When I have a single "$mh->to()", there is no issue. It sends a single email.

However if I use multiple "$mh->to()" or "$mh->to() with $mh->cc()", it sends several emails. It seems to send emails after every few minutes. The C5 logs only show a single email entry. Not sure if this is an issue with my XAMPP or C5.

In my action_submit() function, I also tried redirecting to a new page after the form submission but it didn't help.

Does anyone know how to resolve this?

BlueFractals