Title: Multiple subscription emails
Last modified: July 17, 2020

---

# Multiple subscription emails

 *  [michielvergunst](https://wordpress.org/support/users/michielvergunst/)
 * (@michielvergunst)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/multiple-subscription-emails/)
 * Hi there!
 * At first I must say I really enjoy the plugin, but unfortunatelly found a strange
   bug. In the website we use different groups which a visitor can subscribe to.
   If you subscribe to one group everything works fine, but when you subscribe to
   a second group you get two subscription emails, a third one gives you three subscription
   emails and so on.
 * Every time you subscribe your subscription in added once (that’s good), but you
   get an email corresponding to the groups you already subscribed to (not so good).
 * I think it has to do with the function that sends the email and does not query
   the group.
 * Looking forward to any advise because we will need to go live very soon.

Viewing 1 replies (of 1 total)

 *  Thread Starter [michielvergunst](https://wordpress.org/support/users/michielvergunst/)
 * (@michielvergunst)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/multiple-subscription-emails/#post-13136489)
 * We found the issue, elp_view_subscriber_one in register.php should receive the
   variable $inputdata. Then this functions has to be altered in dbquery1.php like
   this…
 * public static function elp_view_subscriber_one($data = “”)
    { global $wpdb; $
   prefix = $wpdb->prefix; $arrRes = array(); $sSql = “SELECT * FROM `".$prefix."
   elp_emaillist` WHERE”; $sSql = $sSql . ” elp_email_mail = %s and elp_email_group
   = %s”; $sSql = $sSql . ” Limit 1″; $sSql = $wpdb->prepare($sSql, array($data[
   1], $data[3])); $arrRes = $wpdb->get_results($sSql, ARRAY_A); return $arrRes;}
 * Hopefully this can be implemented in a futute update of the plugin.

Viewing 1 replies (of 1 total)

The topic ‘Multiple subscription emails’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/email-posts-to-subscribers_f5f9fd.
   svg)
 * [Email posts to subscribers](https://wordpress.org/plugins/email-posts-to-subscribers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-posts-to-subscribers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-posts-to-subscribers/)
 * [Active Topics](https://wordpress.org/support/plugin/email-posts-to-subscribers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-posts-to-subscribers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-posts-to-subscribers/reviews/)

## Tags

 * [multiple](https://wordpress.org/support/topic-tag/multiple/)

 * 1 reply
 * 1 participant
 * Last reply from: [michielvergunst](https://wordpress.org/support/users/michielvergunst/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/multiple-subscription-emails/#post-13136489)
 * Status: not resolved