Jump to content

Willkommens-E-Mail per powershell versenden


suelzle
 Share


Recommended Posts

Hallo zusammen,

 

ist es möglich die Willkommens-E-Mail per powershell zu versenden? Z.b für

eine Gruppe oder einen Standort?

Habe keine entsprechende Syntax gefunden und kenne mich mich Powershell nicht so gut aus.

 

vielen Dank vorab.

Link to comment
Share on other sites


  • Most Valued User

Hello Suelzle,

 

ja dies ist wie folgt möglich:

# Send welcome mail for all users
Get-IpPbxUser | Send-IpPbxUserWelcomeMail

# Send welcome mail for one specific users
Get-IpPbxUser -UserName "Sebastian" | Send-IpPbxUserWelcomeMail

# Send a welcome email based on the template "MyTemplate.html" to every user.
# The original template can be download via SwyxWare administration
Get-IpPbxUser | Send-IpPbxUserWelcomeMail -MailTemplatePath "c:\MyTemplate.html"

 

Link to comment
Share on other sites


Hallo Sebastian,

 

vielen Dank für die schnelle Antwort.

 

Gibt es eventuell auch die Möglichkeit die Abfrage auf einen Standort einzuschränken?

Wir haben 25 Standorte, und ich würde das gerne gezielt auf einzelne anwenden.

 

Vielen Dank vorab.

Link to comment
Share on other sites


  • Most Valued User

Hallo Suelzle,

 

ja diese Möglichkeit gibt es:

# Send welcome mail for users of a specific location
$location = Get-IpPbxLocation -LocationName "Neubeckum"
Get-IpPbxUser | Where-Object { $_.LocationID -eq $location.LocationID } | Send-IpPbxUserWelcomeMail

Alternativ gibt es auch die Möglichkeit die E-Mail auf Basis von Gruppen zu versenden:

# Send welcome mail for members of a specific group
Get-IpPbxGroupMember -GroupName "TestGroup" | Send-IpPbxUserWelcomeMail

Kind regards

 

Sebastian Dreier

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


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.