> For the complete documentation index, see [llms.txt](https://magecomp.gitbook.io/shopify/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://magecomp.gitbook.io/shopify/apps/shoplock-login-required/send-passcodes-by-email.md).

# 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/155cZUlOiQY81fEuL3Kp" 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/0sl2fpLBcHB0SJfXX5eD" alt=""><figcaption></figcaption></figure>

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

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

**✅ By Customer Tags**

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

<figure><img src="/files/8GUZgPyvd0AcxPvicRGX" alt=""><figcaption></figcaption></figure>

**✅ By Customer Segments**

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

<figure><img src="/files/8nYBdZ3BDy2mcpaAPIs0" alt=""><figcaption></figcaption></figure>

**✅ 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/YIFmkVHTS4hBfXWuY5Xx" 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/ZLJ4pyinJWRBXH4YAR1z" 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**

Merchants can customize the content and appearance of passcode emails directly from the admin panel. The configured email settings, including branding and message content, are automatically applied when sending passcodes to customers.

Additionally, a **live email preview** is available, allowing merchants to review the final email design and content before sending it to customers. This helps ensure the email matches their branding and communication requirements.

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

### Passcode Email Customization

The **Passcode Email Customization** feature allows merchants to personalize the emails sent to customers containing their unique passcodes.

#### Available Customization Options

**General Container**

Customize the overall appearance of the email card, including:

* Card height and width
* Border radius
* Border color

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

**Header**

Customize the email header section:

* Background color
* Font color
* Font size
* Header icon or custom header image

<figure><img src="/files/7IU12NCMQi8YD1Rl6Nlo" alt=""><figcaption></figcaption></figure>

**Banner Image**

Upload a custom banner image to match your brand identity.

* Support for custom image uploads
* Adjustable image dimensions
* Multiple image fit options

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

**Greeting**

Customize the opening greeting displayed to customers.

* Greeting text
* Font size
* Font color

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

**Email Content**

Modify the email body content shown above the passcode.

* Custom paragraphs
* Font styling options
* Text alignment settings

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

**Passcode Box**

Customize the appearance of the passcode section:

* Background color
* Border color
* Title styling
* Passcode font styling

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

**Support Text**

Add a support message or contact information below the passcode.

* Custom text
* Font size
* Font color

<figure><img src="/files/3cb1KEbPOYRNg7wKN8V3" alt=""><figcaption></figcaption></figure>

**Footer**

Customize the closing message of the email.

* Footer greeting text
* Custom footer content
* Automatic store name insertion using the {shopname} variable

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

#### Live Email Preview

A live preview is available to help merchants visualize the final email design and content before sending it to customers.

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

#### Automatic Application

All configured email settings are automatically applied to passcode emails sent from the app, ensuring a consistent and branded customer experience.
