API Reference
Function
EmailBody
Defines styling properties for an email body content.
Remarks
This function defines styling properties for an email body content such as color, background color, font size, font weight, font style, font family, alignment, text decoration, text transform, direction, and more.
Examples
EXAMPLE 1
EmailBody -Alignment 'Value'
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
EmailBody [-Alignment <left|center|right|justify>] [-BackGroundColor <String>] [-Color <String>] [-Direction <rtl>] [-EmailBody <ScriptBlock>] [-FontFamily <String>] [-FontSize <Object>] [-FontStyle <normal|italic|oblique>] [-FontVariant <normal|small-caps>] [-FontWeight <normal>] [-Format] [-LineHeight <String>] [-Minify] [-Online] [-Parameter <IDictionary>] [-TextDecoration <line-through|overline|underline>] [-TextTransform <uppercase|lowercase|capitalize>] [<CommonParameters>]
#
Parameter set:
All Parameter SetsParameters
- Alignment String
- Specifies the alignment of the text in the email body. Valid values are 'left', 'center', 'right', or 'justify'.
- Possible values:
left,center,right,justify - BackGroundColor String
- Specifies the background color of the email body.
- Color String
- Specifies the color of the text in the email body.
- Direction String
- Specifies the direction of the text in the email body. Valid value is 'rtl'.
- Possible values:
rtl - EmailBody ScriptBlock
- Specifies the ScriptBlock containing the email body content.
- FontFamily String
- Specifies the font family of the text in the email body.
- FontSize Object
- FontStyle String
- Specifies the style of the font in the email body. Valid values are 'normal', 'italic', or 'oblique'.
- Possible values:
normal,italic,oblique - FontVariant String
- Specifies the variant of the font in the email body. Valid values are 'normal' or 'small-caps'.
- Possible values:
normal,small-caps - FontWeight String
- Specifies the weight of the font in the email body. Valid values are 'normal', 'bold', 'bolder', 'lighter', or numeric values from 100 to 900.
- Possible values:
normal,bold,bolder,lighter,100,200,300,400,500,600,700,800,900 - Format SwitchParameter
- Switch parameter to format the email body content.
- LineHeight String
- Specifies the line height of the text in the email body.
- Minify SwitchParameter
- Switch parameter to minify the email body content.
- Online SwitchParameter
- Switch parameter to indicate if the email body content is online.
- Parameter IDictionary
- Specifies additional parameters for styling the email body content.
- TextDecoration String
- Specifies the decoration of the text in the email body. Valid values are 'none', 'line-through', 'overline', or 'underline'.
- Possible values:
line-through,overline,underline - TextTransform String
- Specifies the transformation of the text in the email body. Valid values are 'uppercase', 'lowercase', or 'capitalize'.
- Possible values:
uppercase,lowercase,capitalize