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.PS1Just 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.