title: Powershell send-mailmessage to 2 recipients returns "the server response was 4.5.3 too many recipients"
body: <p>I have a PowerShell script that runs a report on an SQL database and attaches the report to an email sent using <code>send-mailmessage</code>.</p>
  
  <p>My syntax is <code>send-mailmessage -to user1@domain.com.au -cc user2@domain.com.au -subject "PE matter report (Since 1 July 2015)" -bodyashtml -body $body -Attachments "C:\scripts-and-reports\New PE matters since 01 July 2015.xlsx" -from databaseserver@domain.com.au -Priority high -Verbose  -SmtpServer domain-com-au.mail.protection.outlook.com</code>.</p>
  
  <p>It returns an error </p>
  
  <blockquote>
    <p>send-mailmessage : Insufficient system storage. The server response
    was: 4.5.3 Too many recipients (AS780090)</p>
    
    <p>[AM1FFO11FD023.protection.gbl]</p>
  </blockquote>
  
  <p>If I remove the Cc from the script, the message sends OK and is received OK.
  But I kind of need the Cc in there and if possible, a Bcc as well.</p>
  
  <p>I have added the server's WAN IP to my domain's SPF record (and it tests OK), I have added the URL to Office365's ExchangeOnline Connection Filter Allowed list, and I have even added a transport rule checking the IP which sets SCL to -1 and bypasses clutter.</p>
  
  <p>I just can't figure this out.  Does anyone have any suggestions?</p>