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.

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,163 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,333 questions
{count} votes

Accepted answer
  1. Andy David - MVP 141K Reputation points MVP
    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,206 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