> 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="/files/59yfKT9jxcYQI5Pk614m" alt=""><figcaption><p>Test Notification Content w/ QR Code</p></figcaption></figure>

{% hint style="info" %}
This option to display barcode labels in email notifications utilize server-side barcode generation. The resulting email content is an SVG IMG tag referenced in the email. Rendering of SVG barcode content for the end-user is dependent on email client support of SVG images.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.yansalabs.com/barcode-and-qr-code-generator/technical-docs/using-a-barcode-label/display-in-email-notification/image-based-notifications.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
