> For the complete documentation index, see [llms.txt](https://docs.yansalabs.com/barcode-and-qr-code-generator/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yansalabs.com/barcode-and-qr-code-generator/technical-docs/using-a-barcode-label/display-in-email-notification/image-based-notifications.md).

# Image-Based Notifications

### Mail Scripts - Display a barcode within an email notification:

1. Visit **Barcode & QR Code Generator -> Mail Scripts** in the left nav. Locate and open the Email Script titled 'test\_barcode\_mail\_script\_img'. Following the instructions in the commented code, update code values to accommodate your needs. Insert and Stay in the global scope to create a new record.\
   \*\* ***Note: The resulting Mail Script for this method must be in the global scope to work correctly. \*\****
2. Visit **Barcode & QR Code Generator -> Notifications** in the left nav. Locate and open the Notification titled 'Test QR/Barcode Label in Email (IMG)'. Study the 'Message HTML' in this Notification to understand how to use the Mail Script properly. You can update this notification to accommodate your needs, and then Insert and Stay to create a new record. Or, you can simply utilize the Mail Script above in your existing notifications. *You will need to update the referenced Mail Script name to match what you created in step 1 above.*

{% hint style="info" %}
This method renders a **Barcode Part** in the email, not an entire **Barcode Generator** label.
{% endhint %}

<figure><img src="https://1867719272-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF2SazJJWf6DjyEIJAtF4%2Fuploads%2FFZs6UKKkHGaqt1JLnWqf%2FScreenshot%202026-01-29%20at%2011.22.22%E2%80%AFAM.png?alt=media&#x26;token=f572b444-5ba3-4c20-a65d-2465eb43b249" alt=""><figcaption><p>Test Notification Content w/ QR Code</p></figcaption></figure>

{% hint style="info" %}
The resulting email content is an SVG image referenced in the email. Whether the barcode displays for the recipient depends on the email client's support for SVG images.
{% endhint %}
