# Send Passcodes by Email

This enables **secure, quick, and convenient delivery of access credentials** without creating new passcodes.

### What This Feature Does

This feature allows you to:

* Select **existing passcodes**
* Choose **specific customers, tags, or segments**
* Send passcodes securely via **email**
* Use your **configured SMTP settings** for delivery

No new passcodes are generated; only **already created passcodes** are sent.

<figure><img src="/files/DPAw4DTJPTzuwI9QTBIR" alt=""><figcaption></figcaption></figure>

### Passcodes & Recipients Section (How It Works)

#### 1. **Passcodes to Send**

* Search and select the passcodes you want to send.
* Only existing passcodes can be selected.

<figure><img src="/files/qQukjmIM5SIlvwT6LVtA" alt=""><figcaption></figcaption></figure>

2. **Choose Recipients :**&#x20;

   You can send passcodes to customers in **three flexible ways**:

**✅ By Shop Tags**

* Select one or more customer tags.
* Customers with at least one of these tags will receive the email.

**✅ By Customer Segments**

* Choose from your Shopify customer segments.
* All customers within the selected segment(s) will receive the email.

**✅ Manual Customer Selection**

* Search and select specific customers by name or email.
* Useful for sending passcodes to individual or limited customers.

<figure><img src="/files/bhEp8ZKCIWguINiysh2W" alt=""><figcaption></figcaption></figure>

3. **Custom Message (Optional)**
   * Add a short message that will appear in the email body.
   * Useful for explaining why the customer is receiving the passcode or providing usage instructions.

<figure><img src="/files/YCNpdWxKOs9jtFXywKpp" alt=""><figcaption></figcaption></figure>

### Email Delivery

* Emails are sent using the **SMTP configuration** set in the app’s **Settings**.
* Customers receive the passcode securely in their inbox.
* This ensures controlled access to restricted store areas.

### When to Use This Feature

* Granting store access to **VIP or wholesale customers**
* Sharing login credentials with **approved users**
* Re-sending passcodes without regenerating them
* Managing access for **private or restricted stores**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://magecomp.gitbook.io/shopify/apps/shoplock-login-required/send-passcodes-by-email.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
