Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Powershell Send-MailMessage (Or SMTPClient) Protocol Error with Exchange 2010

$
0
0

I am attempting to script the sending of some e-mails to external recipients, so I need to authenticate with the Exchange server. Using either Send-MailMessage or SMTPClient. I get the following errors, respectively:

Text
1
2
3
Send-MailMessage : The server committed a protocol violation The server response was: UGFzc3dvcmQ6 

Exception calling "Send" with "1" argument(s): "The server committed a protocol violation The server response was: UGFzc3dvcmQ6" 

From Googleing I have found that UGFzc3dvcmQ6 is a base64 encoded version of "Password:." So, apparently, the Exchange server and powershell aren't using the same authentication protocol.  It is asking for a password that powershell is sending at a different time.

I'm not sure if this is a smtpclient or Exchange configuration issue. I'm not that strong on Exchange.  Any ideas?


Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>