├── .github └── FUNDING.YML ├── Emailimo.psd1 ├── Emailimo.psm1 ├── Examples ├── Example-DifferentFeaturesInAction.ps1 ├── Example-PasswordNotification.ps1 ├── Example-PasswordNotificationColors.ps1 └── Example-PasswordNotificationDiff.ps1 ├── LICENSE └── Readme.md /.github/FUNDING.YML: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: PrzemyslawKlys 4 | patreon: przemyslawklys 5 | ko_fi: przemyslawklys 6 | custom: https://paypal.me/PrzemyslawKlys -------------------------------------------------------------------------------- /Emailimo.psd1: -------------------------------------------------------------------------------- 1 | # 2 | # Module manifest for module 'Emailimo' 3 | # 4 | # Generated by: Przemyslaw Klys 5 | # 6 | # Generated on: 11.11.2019 7 | # 8 | 9 | @{ 10 | 11 | # Script module or binary module file associated with this manifest. 12 | RootModule = 'Emailimo.psm1' 13 | 14 | # Version number of this module. 15 | ModuleVersion = '0.0.12' 16 | 17 | # Supported PSEditions 18 | CompatiblePSEditions = 'Desktop', 'Core' 19 | 20 | # ID used to uniquely identify this module 21 | GUID = '3e94ee8d-4851-467e-8f84-17e518f8f865' 22 | 23 | # Author of this module 24 | Author = 'Przemyslaw Klys' 25 | 26 | # Company or vendor of this module 27 | CompanyName = 'Evotec' 28 | 29 | # Copyright statement for this module 30 | Copyright = 'Evotec (c) 2011-2019. All rights reserved.' 31 | 32 | # Description of the functionality provided by this module 33 | Description = 'Easy way to send emails in PowerShell' 34 | 35 | # Minimum version of the Windows PowerShell engine required by this module 36 | PowerShellVersion = '5.1' 37 | 38 | # Name of the Windows PowerShell host required by this module 39 | # PowerShellHostName = '' 40 | 41 | # Minimum version of the Windows PowerShell host required by this module 42 | # PowerShellHostVersion = '' 43 | 44 | # Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. 45 | # DotNetFrameworkVersion = '' 46 | 47 | # Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. 48 | # CLRVersion = '' 49 | 50 | # Processor architecture (None, X86, Amd64) required by this module 51 | # ProcessorArchitecture = '' 52 | 53 | # Modules that must be imported into the global environment prior to importing this module 54 | RequiredModules = @(@{ModuleName = 'PSWriteHTML'; GUID = 'a7bdf640-f5cb-4acf-9de0-365b322d245c'; ModuleVersion = '0.0.61'; }) 55 | 56 | # Assemblies that must be loaded prior to importing this module 57 | # RequiredAssemblies = @() 58 | 59 | # Script files (.ps1) that are run in the caller's environment prior to importing this module. 60 | # ScriptsToProcess = @() 61 | 62 | # Type files (.ps1xml) to be loaded when importing this module 63 | # TypesToProcess = @() 64 | 65 | # Format files (.ps1xml) to be loaded when importing this module 66 | # FormatsToProcess = @() 67 | 68 | # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess 69 | # NestedModules = @() 70 | 71 | # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. 72 | FunctionsToExport = @() 73 | 74 | # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. 75 | CmdletsToExport = @() 76 | 77 | # Variables to export from this module 78 | # VariablesToExport = @() 79 | 80 | # Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. 81 | AliasesToExport = @() 82 | 83 | # DSC resources to export from this module 84 | # DscResourcesToExport = @() 85 | 86 | # List of all modules packaged with this module 87 | # ModuleList = @() 88 | 89 | # List of all files packaged with this module 90 | # FileList = @() 91 | 92 | # Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. 93 | PrivateData = @{ 94 | 95 | PSData = @{ 96 | 97 | # Tags applied to this module. These help with module discovery in online galleries. 98 | Tags = 'Windows', 'MacOs', 'Linux', 'Email' 99 | 100 | # A URL to the license for this module. 101 | # LicenseUri = '' 102 | 103 | # A URL to the main website for this project. 104 | ProjectUri = 'https://github.com/EvotecIT/Emailimo' 105 | 106 | # A URL to an icon representing this module. 107 | IconUri = 'https://evotec.xyz/wp-content/uploads/2019/04/Emailimo.png' 108 | 109 | # ReleaseNotes of this module 110 | # ReleaseNotes = '' 111 | 112 | } # End of PSData hashtable 113 | 114 | } # End of PrivateData hashtable 115 | 116 | # HelpInfo URI of this module 117 | # HelpInfoURI = '' 118 | 119 | # Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. 120 | # DefaultCommandPrefix = '' 121 | 122 | } -------------------------------------------------------------------------------- /Emailimo.psm1: -------------------------------------------------------------------------------- 1 | #Get public and private function definition files. 2 | $Public = @( Get-ChildItem -Path $PSScriptRoot\Public\*.ps1 -ErrorAction SilentlyContinue -Recurse ) 3 | $Private = @( Get-ChildItem -Path $PSScriptRoot\Private\*.ps1 -ErrorAction SilentlyContinue -Recurse ) 4 | 5 | #Dot source the files 6 | Foreach ($import in @($Public + $Private)) { 7 | Try { 8 | . $import.fullname 9 | } Catch { 10 | Write-Error -Message "Failed to import function $($import.fullname): $_" 11 | } 12 | } 13 | Export-ModuleMember -Function '*' -------------------------------------------------------------------------------- /Examples/Example-DifferentFeaturesInAction.ps1: -------------------------------------------------------------------------------- 1 | Import-Module PSWriteHTML -Force 2 | Import-Module Emailimo -Force 3 | 4 | if ($null -eq $Table) { 5 | $Table = (Get-Process | Select-Object -First 5 -Property Name, BasePriority, Company, CompanyName) 6 | } 7 | if ($null -eq $Table1) { 8 | $Table1 = (Get-ChildItem | Select-Object -First 5) 9 | } 10 | 11 | Email -AttachSelf -AttachSelfName 'My report' { 12 | EmailHeader { 13 | EmailFrom -Address 'reminder@domain.pl' 14 | EmailTo -Addresses "przemyslaw.klys@domain.pl" 15 | EmailCC -Addresses "przemyslaw.klys@domain.pl" 16 | EmailBCC -Addresses "kontakt@domain.pl" 17 | EmailServer -Server 'mail.domain.pl' -UserName 'UserName' -Password 'C:\Support\Important\Password-Evotec-Reminder.txt' -PasswordAsSecure -PasswordFromFile 18 | EmailOptions -Priority Low 19 | EmailSubject -Subject 'This is a test email' 20 | } 21 | EmailBody { 22 | 23 | EmailTextBox -FontFamily 'Calibri' -Size 17 -TextDecoration underline -Color DarkSalmon -Alignment center { 24 | 'Demonstration' 25 | } 26 | EmailText -LineBreak 27 | EmailTextBox -FontFamily 'Calibri' -Size 15 { 28 | "This is some text that's preformatted with Emoji 🤷 ️" 29 | "Adding more text, notice ths should be on next line" 30 | "" 31 | "Empty line above will cause a blank space. If you want to continue writting like you would do in normal email please use here strings as seen below." 32 | @" 33 | This is tricky but it works like one ❤ 34 | big line... even thou we've split this over few lines 35 | already this will be one continues line. Get it right? 😎 36 | "@ 37 | "" 38 | } 39 | EmailTable -Table $Table 40 | EmailTextBox -FontSize 15 -Color DarkCyan -FontStyle italic { 41 | "" 42 | @" 43 | This is tricky 😁 but it works like one 44 | big line... even thou we've split this over few lines 45 | already this will be one continues line. Get it right? 46 | Notice how I gave it color and made it font size 15. 47 | "@ 48 | "" 49 | } 50 | EmailList -FontSize 15 { 51 | EmailListItem -Text 'First item' -Color Red 52 | EmailListItem -Text '2nd item' -Color Green 53 | EmailList { 54 | EmailListItem -Text '3rd item' -FontStyle italic 55 | EmailListItem -Text '4th item' -TextDecoration line-through 56 | } 57 | } 58 | 59 | EmailTable -Table $Table1 60 | EmailText -LineBreak 61 | EmailText -FontSize 15 -Text 'This is my', 'text' -Color Red, Green -TextDecoration underline -FontFamily 'Calibri' 62 | EmailText -LineBreak 63 | EmailText -FontSize 15 -Text 'This is my', 'text', ' but ', ' with different formatting.' -Color Blue, Red, Green -TextDecoration underline, none, 'line-through' -FontFamily 'Calibri' 64 | 65 | EmailText -LineBreak 66 | } 67 | } -------------------------------------------------------------------------------- /Examples/Example-PasswordNotification.ps1: -------------------------------------------------------------------------------- 1 | Import-Module PSWriteHTML -Force 2 | Import-Module .\Emailimo.psd1 -Force 3 | 4 | ### Prepare your data: 5 | 6 | $UserNotify = 'Przemysław Kłys' 7 | $PasswordExpiryDays = 5 8 | 9 | 10 | Email -WhatIf { 11 | EmailHeader { 12 | EmailFrom -Address 'reminder@domain.pl' 13 | EmailTo -Addresses "przemyslaw.klys@domain.pl" 14 | EmailServer -Server 'mail.evotec.com' -UserName 'YourUsername' -Password 'C:\Support\Important\Password-Evotec-Reminder.txt' -PasswordAsSecure -PasswordFromFile 15 | EmailOptions -Priority High -DeliveryNotifications Never 16 | EmailSubject -Subject 'This is a test email' 17 | } 18 | EmailBody -FontFamily 'Calibri' -Size 15 { 19 | EmailTextBox { 20 | "Hello $UserNotify," 21 | "" 22 | "Your password is due to expire in $PasswordExpiryDays days." 23 | "" 24 | 'To change your password: ' 25 | '- press CTRL+ALT+DEL -> Change a password...' 26 | '' 27 | 'If you have forgotten your password and need to reset it, you can do this by clicking here. ' 28 | "In case of problems please contact the HelpDesk by visiting [Evotec Website](https://evotec.xyz) or by sending an email to Help Desk." 29 | '' 30 | 'Alternatively you can always call Help Desk at +48 22 00 00 00' 31 | '' 32 | 'Kind regards,' 33 | 'Evotec IT' 34 | } 35 | EmailText -LineBreak 36 | } 37 | } -------------------------------------------------------------------------------- /Examples/Example-PasswordNotificationColors.ps1: -------------------------------------------------------------------------------- 1 | Import-Module PSWriteHTML -Force 2 | Import-Module Emailimo -Force 3 | 4 | ### Prepare your data: 5 | 6 | $UserNotify = 'Przemysław Kłys' 7 | $PasswordExpiryDays = 5 8 | 9 | Email -WhatIf { 10 | EmailHeader { 11 | EmailFrom -Address 'reminder@domain.pl' 12 | EmailTo -Addresses "przemyslaw.klys@domain.pl" 13 | EmailServer -Server 'mail.evotec.com' -UserName 'UserName' -Password 'C:\Support\Important\Password-Evotec-Reminder.txt' -PasswordAsSecure -PasswordFromFile 14 | EmailOptions -Priority High -DeliveryNotifications Never 15 | EmailSubject -Subject 'This is a test email' 16 | } 17 | EmailBody -FontFamily 'Calibri' -Size 15 { 18 | EmailText -Text "Hello ", $UserNotify, "," -Color None, Blue, None -Verbose -LineBreak 19 | EmailText -Text "Your password is due to expire in ", $PasswordExpiryDays, "days." -Color None, Green, None 20 | EmailText -LineBreak 21 | EmailText -Text 'To change your password: ' 22 | EmailText -Text '- press ', 'CTRL+ALT+DEL', ' -> ', 'Change a password...' -Color None, BlueViolet, None, Red 23 | EmailText -LineBreak 24 | EmailTextBox { 25 | 'If you have forgotten your password and need to reset it, you can do this by clicking here. ' 26 | "In case of problems please contact the HelpDesk by visiting [Evotec Website](https://evotec.xyz) or by sending an email to Help Desk." 27 | } 28 | EmailText -LineBreak 29 | EmailText -Text 'Alternatively you can always call ', 'Help Desk', ' at ', '+48 22 00 00 00' ` 30 | -Color None, LightSkyBlue, None, LightSkyBlue -TextDecoration none, underline, none, underline -FontWeight normal, bold, normal, bold 31 | EmailText -LineBreak 32 | EmailTextBox { 33 | 'Kind regards,' 34 | 'Evotec IT' 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /Examples/Example-PasswordNotificationDiff.ps1: -------------------------------------------------------------------------------- 1 | Import-Module PSWriteHTML -Force 2 | Import-Module .\Emailimo.psd1 -Force 3 | 4 | ### Prepare your data: 5 | 6 | $UserNotify = 'Przemysław Kłys' 7 | $PasswordExpiryDays = 5 8 | 9 | Email -WhatIf -To 'przemyslaw.klys@domain.pl' -Server 'mail.domain.com' -From 'reminder@domain.pl' -Subject 'Tis is a test email' -Username 'UserName' -Password 'C:\Support\Important\Password-Evotec-Reminder.txt' -PasswordAsSecure -PasswordFromFile -Priority High -DeliveryNotifications Never { 10 | EmailBody -FontFamily 'Calibri' -Size 15 { 11 | EmailTextBox { 12 | "Hello $UserNotify," 13 | "" 14 | "Your password is due to expire in $PasswordExpiryDays days." 15 | "" 16 | 'To change your password: ' 17 | '- press CTRL+ALT+DEL -> Change a password...' 18 | '' 19 | 'If you have forgotten your password and need to reset it, you can do this by clicking here. ' 20 | "In case of problems please contact the HelpDesk by visiting [Evotec Website](https://evotec.xyz) or by sending an email to Help Desk." 21 | '' 22 | 'Alternatively you can always call Help Desk at +48 22 00 00 00' 23 | '' 24 | 'Kind regards,' 25 | 'Evotec IT' 26 | } 27 | EmailText -LineBreak 28 | } 29 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Evotec 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- 1 |
6 | 7 | 13 | 14 | 19 | 20 | # Emailimo - PowerShell Module 21 | 22 | **Emailimo** is simplified **PowerShell** module allowing to send emails using english like syntax. It provides easy to use commands that allow you to sort of tyupe your email like you would in Outlook (to some extent - it's still **PowerShell** you know!). Emailimo is based on [PSWriteHTML](https://github.com/EvotecIT/PSWriteHTML). 23 | 24 | ## IMPORTANT 25 | 26 | **Emailimo** project has been integrated back to [PSWriteHTML](https://github.com/EvotecIT/PSWriteHTML). This project is now **ARCHIVED**. Emailimo syntax and functionality will live as part of [PSWriteHTML](https://github.com/EvotecIT/PSWriteHTML). 27 | 28 | ```PowerShell 29 | Uninstall-Module Emailimo -AllVersions 30 | Install-Module PSWriteHTML -Force 31 | ``` 32 | 33 | Everything below is relavant with a change that what you see here is actually now a functionality of **PSWriteHTML**. Leaving this for historical reasons. The reason for moving **Emailimo** to **PSWriteHTML** was that it was getting hard to keep both modules in sync, especially that 90% of features was identical with exception of sending emails. Emailimo features will be fully supported as part of **PSWriteHTML**. Hope to see you in that project. 34 | 35 | ## ARCHIVE 36 | 37 | ## Changelog 38 | 39 | - 0.0.12 - 2019.11.11 40 | - Emailimo has been moved to **PSWriteHTML** 41 | - This is last release of Emailimo. It basically points to **PSWriteHTML** making **Emailimo**, an empty module that just downloads **PSWriteHTML**. There is no need to download/install Emailimo. You can use **Emailimo** syntax straight from **PSWriteHTML**, just like you did before. Just make sure to update **PSWriteHTML** to newest version. 42 | 43 | - 0.0.10 - 2019.10.28 44 | - Fix for EmailAttachment 45 | - 0.0.9 - 2019.08.25 46 | - Support for new PSWriteHTML 47 | 48 | - 0.0.8 - 2019.08.11 49 | - Support for new PSWriteHTML 50 | 51 | - 0.0.7 - 2019.06.17 52 | - Support for new PSWriteHTML 53 | 54 | - 0.0.6 - 2019.06.02 55 | - Fix for EmailListItem for multiple texts 56 | 57 | - 0.0.2 to 0.0.5 58 | - Something important but forgot what 59 | 60 | - 0.0.1 - 2019.04.12 61 | - First public release 62 | - Overview: https://evotec.xyz/meet-emailimo-new-way-to-send-pretty-emails-with-powershell/ 63 | 64 | ### Example 1 65 | 66 | ```powershell 67 | Email -WhatIf { 68 | EmailHeader { 69 | EmailFrom -Address 'reminder@domain.pl' 70 | EmailTo -Addresses "przemyslaw.klys@domain.pl" 71 | EmailServer -Server 'mail.evotec.com' -UserName 'UserName' -Password 'C:\Support\Important\Password-Evotec-Reminder.txt' -PasswordAsSecure -PasswordFromFile 72 | EmailOptions -Priority High -DeliveryNotifications Never 73 | EmailSubject -Subject 'This is a test email' 74 | } 75 | EmailBody -FontFamily 'Calibri' -Size 15 { 76 | EmailText -Text "Hello ", $UserNotify, "," -Color None, Blue, None -Verbose -LineBreak 77 | EmailText -Text "Your password is due to expire in ", $PasswordExpiryDays, "days." -Color None, Green, None 78 | EmailText -LineBreak 79 | EmailText -Text 'To change your password: ' 80 | EmailText -Text '- press ', 'CTRL+ALT+DEL', ' -> ', 'Change a password...' -Color None, BlueViolet, None, Red 81 | EmailText -LineBreak 82 | EmailTextBox { 83 | 'If you have forgotten your password and need to reset it, you can do this by clicking here. ' 84 | "In case of problems please contact the HelpDesk by visiting [Evotec Website](https://evotec.xyz) or by sending an email to Help Desk." 85 | } 86 | EmailText -LineBreak 87 | EmailText -Text 'Alternatively you can always call ', 'Help Desk', ' at ', '+48 22 00 00 00' ` 88 | -Color None, LightSkyBlue, None, LightSkyBlue -TextDecoration none, underline, none, underline -FontWeight normal, bold, normal, bold 89 | EmailText -LineBreak 90 | EmailTextBox { 91 | 'Kind regards,' 92 | 'Evotec IT' 93 | } 94 | } 95 | } 96 | ``` 97 | 98 |  99 | 100 | ### Example 2 101 | 102 | ```powershell 103 | Email -WhatIf { 104 | EmailHeader { 105 | EmailFrom -Address 'reminder@domain.pl' 106 | EmailTo -Addresses "przemyslaw.klys@domain.pl" 107 | EmailServer -Server 'mail.evotec.com' -UserName 'UserName' -Password 'C:\Support\Important\Password-Evotec-Reminder.txt' -PasswordAsSecure -PasswordFromFile 108 | EmailOptions -Priority High -DeliveryNotifications Never 109 | EmailSubject -Subject 'This is a test email' 110 | } 111 | EmailBody -FontFamily 'Calibri' -Size 15 { 112 | EmailText -Text "Hello ", $UserNotify, "," -Color None, Blue, None -Verbose -LineBreak 113 | EmailText -Text "Your password is due to expire in ", $PasswordExpiryDays, "days." -Color None, Green, None 114 | EmailText -LineBreak 115 | EmailText -Text 'To change your password: ' 116 | EmailText -Text '- press ', 'CTRL+ALT+DEL', ' -> ', 'Change a password...' -Color None, BlueViolet, None, Red 117 | EmailText -LineBreak 118 | EmailTextBox { 119 | 'If you have forgotten your password and need to reset it, you can do this by clicking here. ' 120 | "In case of problems please contact the HelpDesk by visiting [Evotec Website](https://evotec.xyz) or by sending an email to Help Desk." 121 | } 122 | EmailText -LineBreak 123 | EmailText -Text 'Alternatively you can always call ', 'Help Desk', ' at ', '+48 22 00 00 00' ` 124 | -Color None, LightSkyBlue, None, LightSkyBlue -TextDecoration none, underline, none, underline -FontWeight normal, bold, normal, bold 125 | EmailText -LineBreak 126 | EmailTextBox { 127 | 'Kind regards,' 128 | 'Evotec IT' 129 | } 130 | } 131 | } 132 | ``` 133 | 134 |  135 | 136 | ### Example 3 137 | 138 | ```powershell 139 | if ($null -eq $Table) { 140 | $Table = (Get-Process | Select-Object -First 5 -Property Name, BasePriority, Company, CompanyName) 141 | } 142 | if ($null -eq $Table1) { 143 | $Table1 = (Get-ChildItem | Select-Object -First 5) 144 | } 145 | 146 | Email -AttachSelf -AttachSelfName 'My report' { 147 | EmailHeader { 148 | EmailFrom -Address 'reminder@domain.pl' 149 | EmailTo -Addresses "przemyslaw.klys@domain.pl" 150 | EmailCC -Addresses "przemyslaw.klys@domain.pl" 151 | EmailBCC -Addresses "kontakt@domain.pl" 152 | EmailServer -Server 'mail.domain.pl' -UserName 'UserName' -Password 'C:\Support\Important\Password-Evotec-Reminder.txt' -PasswordAsSecure -PasswordFromFile 153 | EmailOptions -Priority Low 154 | EmailSubject -Subject 'This is a test email' 155 | } 156 | EmailBody { 157 | 158 | EmailTextBox -FontFamily 'Calibri' -Size 17 -TextDecoration underline -Color DarkSalmon -Alignment center { 159 | 'Demonstration' 160 | } 161 | EmailText -LineBreak 162 | EmailTextBox -FontFamily 'Calibri' -Size 15 { 163 | "This is some text that's preformatted with Emoji 🤷 ️" 164 | "Adding more text, notice ths should be on next line" 165 | "" 166 | "Empty line above will cause a blank space. If you want to continue writting like you would do in normal email please use here strings as seen below." 167 | @" 168 | This is tricky but it works like one ❤ 169 | big line... even thou we've split this over few lines 170 | already this will be one continues line. Get it right? 😎 171 | "@ 172 | "" 173 | } 174 | EmailTable -Table $Table 175 | EmailTextBox -FontSize 15 -Color DarkCyan -FontStyle italic { 176 | "" 177 | @" 178 | This is tricky 😁 but it works like one 179 | big line... even thou we've split this over few lines 180 | already this will be one continues line. Get it right? 181 | Notice how I gave it color and made it font size 15. 182 | "@ 183 | "" 184 | } 185 | EmailList -FontSize 15 { 186 | EmailListItem -Text 'First item' -Color Red 187 | EmailListItem -Text '2nd item' -Color Green 188 | EmailList { 189 | EmailListItem -Text '3rd item' -FontStyle italic 190 | EmailListItem -Text '4th item' -TextDecoration line-through 191 | } 192 | } 193 | 194 | EmailTable -Table $Table1 195 | EmailText -LineBreak 196 | EmailText -FontSize 15 -Text 'This is my', 'text' -Color Red, Green -TextDecoration underline -FontFamily 'Calibri' 197 | EmailText -LineBreak 198 | EmailText -FontSize 15 -Text 'This is my', 'text', ' but ', ' with different formatting.' -Color Blue, Red, Green -TextDecoration underline, none, 'line-through' -FontFamily 'Calibri' 199 | 200 | EmailText -LineBreak 201 | } 202 | } 203 | ``` 204 | 205 |  --------------------------------------------------------------------------------