Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Powershell and HTML tables

$
0
0

Hi guys,

I'll say right away i don't like html and i know basics.

I'm Revamping my user creation scripts and it outputs the content in a html format.

The problem i have is the html in itself if i open it in IE it shows correctly but if sent in an email the table are vertical and some horizontal.

I'll attach 2 picture 1 from IE what i want and what i get from email.
Here's the code.

Powershell
$messagebody="
New User automation Script
Ticket Number: $global:ticket
User to Copy from:$global:nameok
Logon Name of New user:$global:NewUser
First & Last Name: $global:fname $global:lname
BODY{background-color:white;}
Group membership added Group membership Requested
$grpaddhtml$groupfinalhtml
Mailbox Storage Selection:$global:db
User Email:$emailname@domain.com$accimpaliastomail
Home Folder:\\server\...

Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>