SparkPost/wordpress-sparkpost

Sending Multiple Emails

custometching opened this issue · 9 comments

I am using the Spark Post plugin and the group mail plugin that goes along with it inside of wordpress to send the results of a form to all the subscribers within my website. This was working excellent until lately the system is sending the results 3 or 4 times upon submission. It is not consistent as to always sending the result 3 or 4 times or 2 times. Odd thing is we have not made any changes and this started. Open to all ideas and suggestions. Thanks!

Can you explain a bit more about what do you mean by group mail plugin...? Is that a separate plugin?

@custometching Thanks for explanation. But, TBH, I have no clue what might go wrong. Can you check if the wp_mail function is called multiple times when you sent email to a group, if it's sending one email per group. If it sends individual emails (calls wp_mail once for each recipient), then check if it's calling it more than the subscribers you've in that particular group.

you can add a function to wp_mail filter, and log something in a file.

@custometching Could you figure this out? Do you still need any help from us?

Could you debug and check if the wp_mail is invoked several times?

@custometching i've shared some idea above.

@custometching Closing this issue as we haven't heard from your for a while. Please re-open the issue if problem persists.