QR Code Block (qr-code)
Generate dynamic, scannable QR codes for mobile tickets, discount vouchers, app download links, and two-factor verification.
Key Takeaways
- Generate crisp, scannable vector QR codes directly in your email template.
- Supports dynamic Handlebars variables and ESP merge tags (e.g. {{ticketId}}, *|CUSTOMER_ID|*).
- Customizable foreground and background colors, sizing (100px–400px), and error correction levels.
- Preserves destination click links so recipients on desktop can click the QR code to navigate directly.
Popular In-Email QR Code Applications#
In-email QR codes bridge the gap between desktop reading and real-world or mobile actions:
- Event Ticketing & Boarding Passes: Place a personalized QR code in booking confirmations for rapid mobile scanning at venues.
- In-Store Retail Vouchers: Allow customers to display an exclusive discount barcode or coupon directly on their phone screen at checkout.
- App Download Prompts: Desktop email readers can instantly scan the QR code with their phone camera to open the iOS App Store or Google Play Store.
- Two-Factor Authentication & Device Pairing: Deliver secure setup codes or session authorization tokens.
Configuring Data, Colors & Error Correction#
Select any QR Code block on the canvas to configure its settings:
- Target Data / Value: Enter the static URL or data payload to encode.
- Error Correction Level:
- L (Low - 7%): Best for clean, simple URLs with the lowest dot density.
- M (Medium - 15%): Default recommendation for general use.
- Q (Quartile - 25%): Higher resilience against partial distortion or scanning glare.
- H (High - 30%): Maximum redundancy; ideal if placing a logo in the center.
- Colors & Contrast: Set custom foreground and background hex codes. Maintain at least a 4:1 contrast ratio to ensure optical camera sensors can decode the code instantly.
Personalized & Dynamic QR Codes#
You can inject dynamic personalization variables directly into the QR Code value:
PostBrix automatically URL-encodes the query parameter string during compilation while preserving your merge tag delimiters ({{ and }}), ensuring that your ESP parses the variables before the email hits the recipient's inbox.
Frequently Asked Questions
Will recipients scanning an email on their computer screen be able to read the QR code?
Yes. Modern smartphone cameras scan QR codes displayed on computer monitors effortlessly in under a second.
What happens if the email is opened directly on a mobile phone?
PostBrix automatically wraps the QR code in an anchor link (href), allowing mobile readers who cannot scan their own screen to simply tap the QR code with their thumb to visit the destination URL.
Are PostBrix QR codes supported in Microsoft Outlook desktop?
Yes. The QR code compiles into an optimized, standard PNG image element with explicit HTML width attributes, ensuring 100% rendering compatibility in Outlook 2016–2021 desktop.