# Powershell will not allow a str var in the email.body

**URL:** <https://forums.powershell.org/t/powershell-will-not-allow-a-str-var-in-the-email-body/18994>\
**Category:** PowerShell Help\
**Created:** [April 1, 2022, 3:48pm UTC](https://forums.powershell.org/t/powershell-will-not-allow-a-str-var-in-the-email-body/18994 "2022-04-01T15:48:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [April 1, 2022, 3:55pm UTC](https://forums.powershell.org/t/powershell-will-not-allow-a-str-var-in-the-email-body/18994/2 "2022-04-01T15:55:35Z")

</div>

Please do not post images of code or error messages as it is almost unreadable. Instead post it as text formatted as code.

When you post code, sample data, console output or error messages please format it as code using the _preformatted text_ button ( **\</\>** ). Simply place your cursor on an empty line, click the button and paste your code.  
Thanks in advance

> [@Welcome to the new PowerShell Forums](https://forums.powershell.org/t/welcome-to-the-new-powershell-forums/7/6):
>
> How to format code in [PowerShell.org](http://PowerShell.org) forums. [Codeformatting\_1]

You can go back, edit your existing post and fix it - you don’t have to create a new post. 👆🏽

---

_[View the full topic](https://forums.powershell.org/t/powershell-will-not-allow-a-str-var-in-the-email-body/18994)._
