Jump to content

Organize code by line


Recommended Posts

Here is the piece of code that I am working with. It is all on one line. I am trying to break it up into multiple lines for readability. I know this can be done, but just can't seem to get the syntax correct. Can someone help? I am using smtp to send an e-mail and am trying to break up the line of the .TextBody...

With $objMail
        .From = "blah@blah.com"
        .To = "blah@blah.com"
        .Subject = "this is a test"
        .TextBody = "Computername: " & @ComputerName & @CRLF & "Date: " & $Date & @CRLF & "Time: " & $Time
EndWith

Thanks GUYS!!!!!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...