Send email Notification when new user is created

Hi,
I would like to send an email notification when user is created from your tutorial script to Create AD user from CSV file.

Kindly help with tihs script. thank you

1 Like

So you’re going to need some kind of mail service to send the email message for you. Do you have anything like this set up?

There are tools you can sign up for to send emails and even SMS text messages via API. You call those APIs with the invoke-restmethod command. You can also send from your gmail, but I wouldn’t recommend this over a paid service. If you want to do that check out this video:

Another option would be to use Mailgun or a similar service:

Also another option if you have Office 365: https://adamtheautomator.com/office-365-direct-send/