Title: TNP class bug
Last modified: June 13, 2018

---

# TNP class bug

 *  Resolved [charliecek](https://wordpress.org/support/users/charliecek/)
 * (@charliecek)
 * [8 years ago](https://wordpress.org/support/topic/tnp-class-bug/)
 * Hi,
 * I found a bug in the TNP class in the unsubscribe method: the `'unsubscribed_subject'`
   and `'unsubscribed_message'` options should be queried from `NewsletterSubscription::
   instance()->options` instead of `$newsletter->options`.
 * The bug causes the `$newsletter->mail` method to get empty subject and message
   arguments, so no emails are getting sent when a user is unsubscribed (in my case,
   via the REST API).
 * Thanks!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Roberto Fietta](https://wordpress.org/support/users/webagile/)
 * (@webagile)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/tnp-class-bug/#post-10399309)
 * Hi, thanks for the feedback, we are fixing this issue in the upcoming release.
   
   Regards, Roberto
    -  This reply was modified 7 years, 12 months ago by [Roberto Fietta](https://wordpress.org/support/users/webagile/).

Viewing 1 replies (of 1 total)

The topic ‘TNP class bug’ is closed to new replies.

 * ![](https://ps.w.org/newsletter/assets/icon-256x256.png?rev=1052028)
 * [Newsletter - Send awesome emails from WordPress](https://wordpress.org/plugins/newsletter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/newsletter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/newsletter/)
 * [Active Topics](https://wordpress.org/support/plugin/newsletter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/newsletter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/newsletter/reviews/)

## Tags

 * [TNP](https://wordpress.org/support/topic-tag/tnp/)
 * [unsubscribe](https://wordpress.org/support/topic-tag/unsubscribe/)

 * 1 reply
 * 2 participants
 * Last reply from: [Roberto Fietta](https://wordpress.org/support/users/webagile/)
 * Last activity: [7 years, 12 months ago](https://wordpress.org/support/topic/tnp-class-bug/#post-10399309)
 * Status: resolved