Sending bulk emails from Powershell script

Abdullah Tahir khan 61 Reputation points
2021-02-27T11:51:50.077+00:00

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@keyman .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.

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,171 questions
Exchange Exchange Server Management
{count} votes

Accepted answer
  1. Andy David - MVP 157.4K Reputation points MVP Volunteer Moderator
    2021-02-27T12:49:38.82+00:00

    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://learn.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.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. KyleXu-MSFT 26,396 Reputation points
    2021-03-01T08:07:59.22+00:00

    @Abdullah Tahir khan

    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.