> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# ResendToNonOpeners

# Package: emailMarketing

# Namespace: CampaignService

# Method link: https://dev.wix.com/docs/api-reference/business-management/marketing/emails/email-marketing/campaign/resend-to-non-openers.md

## Permission Scopes:
Manage Email Marketing: SCOPE.DC-PROMOTE.EMAIL-MARKETING

## Introduction

Resends a copy of the campaign to recipients who didn't open the original. Optionally, a different subject line can be used to improve open rates.

The original campaign must have been sent at least 24 hours before resending and must have recipients who didn't open the email. Can only be called once per campaign.

---

## REST API

### Schema

```
 Method: resendToNonOpeners
 Description: Resends a copy of the campaign to recipients who didn't open the original. Optionally, a different subject line can be used to improve open rates.  The original campaign must have been sent at least 24 hours before resending and must have recipients who didn't open the email. Can only be called once per campaign.
 URL: https://www.wixapis.com/email-marketing/v1/campaigns/{campaignId}/resend
 Method: POST
 Method parameters:
   param name: emailSubject | type: emailSubject | description: Alternative subject line for the resent email. Use a different subject to improve open rates.  | validation: maxLength 1000
 Return type: ResendToNonOpenersResponse
  - name: campaignId | type: string | description: GUID of the newly created and resent campaign.  | validation: format GUID


```

### Examples

### Resend to recipients who didn't open the original email
Resends the campaign to non-openers with an alternative subject line to improve open rates.

```curl
curl -X POST \
'https://www.wixapis.com/email-marketing/v1/campaigns/a3f7e812-4b9c-4d21-8e6f-1c0a5b2d9e3f/resend' \
-H 'Authorization: <AUTH>' \
-H 'wix-site-id: <SITE_ID>' \
-H 'Content-Type: application/json' \
-d '{
  "emailSubject": "Still interested? We'\''d love to hear from you!"
}'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.emailMarketing.campaigns.resendToNonOpeners(campaignId, options)
 Description: Resends a copy of the campaign to recipients who didn't open the original. Optionally, a different subject line can be used to improve open rates.  The original campaign must have been sent at least 24 hours before resending and must have recipients who didn't open the email. Can only be called once per campaign.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  campaignId
 Method parameters: 
   param name: campaignId | type: string | description: GUID of the campaign to resend. | required: true | validation: format GUID
   param name: options | type: ResendToNonOpenersOptions  none  
        - name: emailSubject | type: string | description: Alternative subject line for the resent email. Use a different subject to improve open rates.  | validation: maxLength 1000
 Return type: PROMISE<ResendToNonOpenersResponse>
  - name: campaignId | type: string | description: GUID of the newly created and resent campaign.  | validation: format GUID


```

### Examples

### Resend to recipients who didn't open the original email
Resends the campaign to non-openers with an alternative subject line to improve open rates.

```javascript
import { campaigns } from "@wix/email-marketing";

async function resendToNonOpeners() {
  const response = await campaigns.resendToNonOpeners(
    "a3f7e812-4b9c-4d21-8e6f-1c0a5b2d9e3f",
    {
      emailSubject: "Still interested? We'd love to hear from you!",
    },
  );
}

/* Promise resolves to:
 * {
 *   "campaignId": "b8d2a491-3c6e-47f0-9b5a-7e1d8c4f2a0b"
 * }
 */

```

### resendToNonOpeners (self-hosted)
Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { campaigns } from '@wix/email-marketing';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { campaigns },
  // Include the auth strategy and host as relevant
});


async function resendToNonOpeners(campaignId,options) {
  const response = await myWixClient.campaigns.resendToNonOpeners(campaignId,options);
};
```

---