GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Add Obsolete message to Send-MailMessage by TravisEz13 · Pull Request #9178 · PowerShell/PowerShell Conversation
|
| /// <summary> | ||
| /// Implementation for the Send-MailMessage command. | ||
| /// </summary> | ||
| [Obsolete("This cmdlet only supports sending mail from insecure SMTP servers. While there is no immediate replacement available in PowerShell, we recommend you do not use Send-MailMessage at this time.")] |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
"from"? Maybe "insecure connect to"?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I pinged Joey Aiello (@joeyaiello) who wrote the message
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| /// <summary> | ||
| /// Implementation for the Send-MailMessage command. | ||
| /// </summary> | ||
| [Obsolete("This cmdlet only supports sending mail from insecure SMTP servers. While there is no immediate replacement available in PowerShell, we recommend you do not use Send-MailMessage at this time.")] |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Please add test to validate.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
WarningVariables does not capture this warning.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Try using powershell.invoke and then check the streams.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to have a xUnit test suite for all public APIs to have API contract.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
|
||
| $null = $powershell.AddCommand("Send-MailMessage").AddParameters($InputObject).AddParameter("ErrorAction","SilentlyContinue") | ||
|
|
||
| #Send-MailMessage @InputObject -ErrorAction SilentlyContinue |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Remove this.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…d-MailMessage.cs Co-Authored-By: TravisEz13 <[email protected]>
There was an error while loading. Please reload this page.
…d-MailMessage.cs Co-Authored-By: TravisEz13 <[email protected]>
Add Obsolete message to Send-MailMessage ## PR Context See PowerShell/PowerShell-RFC#160 Co-authored-by: Steve Lee <[email protected]> Co-authored-by: Ilya <[email protected]> # Conflicts: # test/powershell/Modules/Microsoft.PowerShell.Utility/Send-MailMessage.Tests.ps1
Add Obsolete message to Send-MailMessage ## PR Context See PowerShell/PowerShell-RFC#160 Co-authored-by: Steve Lee <[email protected]> Co-authored-by: Ilya <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.