Sending email from Powershell in Office 365

HI,

I am looking of a powershell script/cmdets to send email to 400 external recipients, these recipients are saved in a .csv file and sender is using Exchange online, office365.

It would be tedious if sender send emails from MS Outlook 400 times instead, so whole idea is to get the email address of recipients from .csv file and send it once.

Appreciate if somebody can assist.

There are plenty of us that can assist. What assistance are you requesting? You should probably start by reading up on the subject.

Starting point 1

Starting point 2

I am getting this error for above described scenario;

Exception calling “Send” with “1” argument(s): "Error in processing. The server response was: 5.7.3 STARTTLS is required to send mail "

I’m going to guess it’s either office 365 or gmail? Do you have Outlook available on the machine calling the script? May need to use the Outlook COM object as it can be troublesome to use TLS with the built in cmdlet. You may also look into mailkit.