title: No Port Parameter in Send-MailMessage when trying to send mail to Office 365?
body: <p>Here is the version of Powershell I'm using:</p>
  
  <p>$PSVersionTable.PSVersion yields:</p>
  
  <pre><code>Major  Minor  Build  Revision
  -----  -----  -----  --------
  2      0      -1     -1
  </code></pre>
  
  <p>Here is the command:</p>
  
  <pre><code>Send-MailMessage -To "someadmin@somedomain.com" -Body "This is just a test"  -Subject "Test"  -UseSsl
   -Port 587 -SmtpServer 'smtp.office365.com' -From 'someadmin@somedomain.com' -Credential $creds
  </code></pre>
  
  <p>Here is the error:</p>
  
  <pre><code>Send-MailMessage : A parameter cannot be found that matches parameter name 'Port'.
  At line:1 char:105
  + Send-MailMessage -To "someadmin@somedomain.com" -Body "This is just a test"  -Subject "Test"  -UseSsl -Port &lt;&lt;&lt;&lt;  587 -S
  mtpServer 'smtp.office365.com' -From 'someadmin@somedomain.com' -Credential $creds
      + CategoryInfo          : InvalidArgument: (:) [Send-MailMessage], ParameterBindingException
      + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.SendMailMessage
  </code></pre>
  
  <p>Was the <code>Port</code> argument something in that version of Powershell?  Do I need to upgrade powershell to use this?</p>