How to close freemius genrated mails

Freemius is a popular plugin for WordPress that helps you create and manage subscription-based products, including email marketing campaigns. When you use Freemius to generate emails, you may want to close or cancel them at some point. Here are a few ways to close Freemius-generated emails:

Method 1: Cancel the subscription

If you want to cancel a subscription and stop receiving emails, you can do so by:

  1. Logging in to your Freemius account.
  2. Going to the "Subscriptions" tab.
  3. Finding the subscription you want to cancel and clicking on the "Cancel" button.
  4. Confirming the cancellation by clicking "Yes, cancel this subscription".

Method 2: Update the email settings

If you want to stop receiving emails from a specific email campaign, you can update the email settings:

  1. Log in to your Freemius account.
  2. Go to the "Emails" tab.
  3. Find the email campaign you want to stop sending and click on the "Edit" button.
  4. Scroll down to the "Settings" section and toggle off the "Send emails" switch.
  5. Click "Save" to update the settings.

Method 3: Use the Freemius API

If you need to programmatically close emails, you can use the Freemius API. You can use the freemius_cancel_subscription function to cancel a subscription and stop receiving emails.

Here's an example of how you can use the API:

<?php
require_once 'freemius-api.php';

// Set your Freemius API credentials
$api_key = 'YOUR_API_KEY';
$api_secret = 'YOUR_API_SECRET';

// Create a new Freemius API instance
$freemius = new Freemius_API($api_key, $api_secret);

// Cancel a subscription
$subscription_id = 'SUBSCRIPTION_ID';
$freemius->cancel_subscription($subscription_id);

?>

Method 4: Contact Freemius support

If you're unable to close emails using the above methods, you can contact Freemius support for assistance. They may be able to help you resolve the issue or provide additional guidance on how to close the emails.

Remember to always review your email settings and subscription management regularly to ensure you're only receiving emails you want to receive.