API Reference
Command
New-ImageQRCodeEmail
Generates a QR code that opens an email draft.
Remarks
Use this cmdlet to create scannable mailto-style QR codes for support, sales, or campaign responses.
Examples
Create a basic email QR code
PS>
New-ImageQRCodeEmail -Email 'user@example.com' -Subject 'Hello' -Message 'Body' -FilePath qr.png
Creates a QR code that opens the default mail client with recipient, subject, and body prefilled.
Create a support-contact QR code
PS>
New-ImageQRCodeEmail -Email 'support@evotec.pl' -Subject 'Support Request' -Message 'Please describe the issue before sending.' -FilePath support-mail.png -ForegroundColor DarkSlateBlue -PixelSize 14 -Show
Generates a support-oriented email QR code and opens the image after creation.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
New-ImageQRCodeEmail [-BackgroundColor <Color>] -Email <String> -FilePath <String> [-ForegroundColor <Color>] [-Message <String>] [-PixelSize <Int32>] [-Show] [-Subject <String>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- BackgroundColor Color
- Background color of the QR code.
- Email String
- Recipient email address.
- FilePath String
- The image format is inferred from the file extension.
- ForegroundColor Color
- Foreground color of QR modules.
- Message String
- Message body.
- PixelSize Int32
- Pixel size for each QR module.
- Show SwitchParameter
- Open the image after creation.
- Subject String
- Message subject.