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?