Cmdlet
New-OfficeEmailWriterOptions
Creates deterministic email writer settings through ordinary PowerShell parameters.
Syntax
New-OfficeEmailWriterOptions
[-Base64LineLength <Int32>]
[-ConversionLossPolicy <Block| Warn| Allow>]
[-IncludeBccHeader]
[-MaxNestedMessageDepth <Int32>]
[-MaxOutputBytes <Int64>]
[-UsePreservedRawSource]
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Preserve the original source when possible and block semantic loss.
$options = New-OfficeEmailWriterOptions -UsePreservedRawSource -ConversionLossPolicy Block
$message | Save-OfficeEmail -Path .\Message.eml -Options $options -PassThruParameters
- -Base64LineLength Int32
- Maximum encoded characters on one Base64 body line.
- -ConversionLossPolicy EmailConversionLossPolicy
- Policy applied when the requested format cannot preserve known message semantics.
- Possible values:
Block,Warn,Allow - -IncludeBccHeader SwitchParameter
- Write Bcc recipients into the message header.
- -MaxNestedMessageDepth Int32
- Maximum embedded-message write depth.
- -MaxOutputBytes Int64
- Maximum serialized artifact size.
- -UsePreservedRawSource SwitchParameter
- Emit an unchanged preserved source instead of regenerating the artifact when possible.
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.