question

AbdullahTahirkhan-0581 avatar image
0 Votes"
AbdullahTahirkhan-0581 asked ·

Sending bulk emails from Powershell script

Hi there,

I need to know does Office365 allow to send bulk email from Powershell. I have tried Powershell script but no avail.
I have got below errors in Powershell after running the script;

Sending Notification to (emailaddress@domain.com)
Exception calling "Send" with "1" argument(s): "Error in processing. The server response was: 5.7.3 STARTTLS is
required to send mail [PM4QW0902CA0020.usprd09.prod.outlook.com]"

Any help please.

office-exchange-online-itprooffice-exchange-server-connectivity
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@AbdullahTahirkhan-0581
I am writing here to confirm with you any update about this thread now?
If the suggestion below helps, please be free to mark it as an answer for helping more people.

0 Votes 0 ·
AndyDavid avatar image
0 Votes"
AndyDavid answered ·

You have to send using TLS 1.2:
https://office365itpros.com/2021/01/14/powershell-scripts-fail-exchange-online-tls12/



BUT - Sending Bulk Mail mail though Office 365 is not allowed:


https://docs.microsoft.com/en-us/office365/servicedescriptions/exchange-online-service-description/exchange-online-limits

Recipient rate limit: To discourage the delivery of unsolicited bulk messages, Exchange Online has recipient limits that prevent users and applications from sending large volumes of email. These limits are applied per-user to all outbound and internal messages.

Note

Exchange Online customers who need to send legitimate bulk commercial email (for example, customer newsletters) should use third-party providers that specialize in these services.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KyleXu-MSFT avatar image
0 Votes"
KyleXu-MSFT answered ·

@AbdullahTahirkhan-0581

Here is also a related thread which said using command below to force Send-MailMessage to use TLS 1.2 :

 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.