Avatar of carbonbase
carbonbase
Flag for United Kingdom of Great Britain and Northern Ireland

asked on 

How to send a welcome email to new mailboxes

Hi I've been searching online for a script to send a welcome email to newly created user mailboxes.  I've found this script:

https://github.com/12Knocksinna/Office365itpros/blob/master/SendWelcomeEmail.PS1

Just wondering how best to run it in an automated way.  It prompts for login details every time the script is run and errors with "You must call Connect-ExchangeOnline before call any other cmdlet"

Ideally I'd like the script to run each time a mailbox is created, but failing that at least twice a day.  Is this the best approach?  I've had a brief look at Azure functions as a possible alternative way of doing this but it's not clear to me whether that would be a viable option. Thanks.
Exchange* 0ffice 365

Avatar of undefined
Last Comment
carbonbase

8/22/2022 - Mon