Skip to content

Instantly share code, notes, and snippets.

@weipah
weipah / MassMailerHTML.ps1
Created March 19, 2015 10:45
MassMailerHTML - Inform users from ActiveDirectory per Mail with Send-Mailmessage Cmdlet
# Script to inform multiple users via Mail
# Two datasources
# 1. Old Firewall VPN Config -> Exported as XML
# 2. Active Directory Accounts
$date = (get-date)
# Which file should be send with the mail as an attachment?
$attachment = "C:\Users\xyz\Documents\beispiel-anhang.txt"