Repository navigation
Cmdlets: Set -Subject parameter to non-mandatory on Send-MailMessage command - #4044
Trevor Sullivan (pcgeek86) wants to merge 1 commit into
Conversation
|
Should it output a warning if no subject? |
|
Hmm, good thought but my vote would be no. |
|
Now that I think about it. It should work like any other email application where there is a warning for no subject. So there should be a warning, but also there should be a -Force to push past the warning of having no subject. |
|
Aubrey Nicklaus (@BitteringAgent) |
|
Ah, I haven't dealt with too many cmdlets with warnings other than maybe doing a remote session into Exchange Online. Thanks. |
|
Missing Subject is a very bad practice. By default, we must ask for it to present. Maybe add |
|
Another option is to prompt and allow |
|
restarted mac tests due to random failure. |
|
I agree with Ilya (@iSazonov) , but prefer Steve Lee (@SteveL-MSFT) 's proposal to fix the issue. |
|
Trevor Sullivan (@pcgeek86) Could you please continue? |
|
I think a better user experience would be to leave Subject as mandatory and place it in a 'Subject' parameter set. Add a -NoSubject switch and place it in a 'NoSubject' parameter set, then set the default parameter set to 'Subject'. |
|
Trevor Sullivan (@pcgeek86) comments haven't been addressed in a long time. At some point, if comments are not addressed, I'll close the PR. |
Fixes #4043
Cheers,
Trevor Sullivan