# Building Style Sheet $style = @" "@ # Building HTML $signature = @" $(if($displayName){""+$displayName+"
"}) $(if($jobTitle){""+$jobTitle+"

"}) $(if($logo){""})

"}) $(if($mobileNumber){""}) $(if($email){""}) $(if($website){""})
$(if($poBox){ $poBox+"
" }) $(if($street){ $street+"
" }) $(if($city){ $city+"
" }) $(if($state){ $state+"
" }) $(if($zipCode){ $zipCode })

$(if($telephone){"
t: $($telephone)
m: $($mobileNumber)
e: $($email)
w:$($website)


"@ # Save the HTML to the signature file $style + $signature | out-file "$file.htm" -encoding ascii # Build the txt version for none rich text emails $signature = @" $(if($displayName){ $displayName }) $(if($jobTitle){ $jobTitle })