The value to be encoded into the QR code. It can be any valid JavaScript value (object, string, number, etc.). It will be automatically converted to a string using
JSON.stringify.
Options (optional)You can provide custom options to control the appearance and behavior of the QR code. Some useful options include:
errorCorrectionLevel:'L' | 'M' | 'Q' | 'H'– Error correction capability (default:'M')margin:number– Margin around the QR code in modulesscale:number– Scale factor for the image sizewidth:number– Fixed width of the QR code
qrcode options documentation.
ReturnsA
Promise<string> that resolves to a Data URL representing the QR code image in PNG format.
Sending an object
sendEmail utility.
✅ Option 1: Send as an Attachment