Should Send-SmtpMail be deprecated?

Topics: Developer Forum
Developer
Feb 28, 2010 at 6:18 AM

 

Cmdlet          Send-MailMessage  Microsoft.PowerShell.Utility
Cmdlet          Send-SmtpMail        PSCX

And, if it's not going to be deprecated, shouldn't it use the same variable names for From@Host:Port as the built-in?

Cmdlet          Send-MailMessage  Microsoft.PowerShell.Utility
Cmdlet          Send-SmtpMail        PSCX

 

Coordinator
Feb 28, 2010 at 7:20 AM

I have several teams where I work that use this particular cmdlet a lot.  :-)   We probably should have this cmdlet emit a "deprecation" warning for 2.0 and then move it into the Deprecated module in the next rev.  I thnk I would rather do that change the names of the preference variables.

Coordinator
Mar 7, 2010 at 2:20 AM

OK, I put in a deprecation warning in the BeginProcessing for this cmdlet.  It warns that the cmdlet will be deprecated in the next major version of PSCX and that they should use built-in Send-MailMessage instead.