Skip to content

Conversation

@sethvs
Copy link
Contributor

@sethvs sethvs commented May 21, 2018

PR Summary

This would enable use cases when some other function gets needed information,
creates the PSCustomObject and send it to Send-MailMessage through the pipeline.

Get-NeededInfo | Send-MailMessage

Fix #6924

PR Checklist

@sethvs
Copy link
Contributor Author

sethvs commented May 21, 2018

If the changes are OK, docs will follow.

@iSazonov iSazonov requested a review from BrucePay June 7, 2018 12:29
Copy link
Member

@daxian-dbw daxian-dbw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. @BrucePay do you mind taking a quick look?

@daxian-dbw daxian-dbw merged commit 7628f88 into PowerShell:master Jun 26, 2018
Copy link
Collaborator

@BrucePay BrucePay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall, I'd just like to see different data used in the second test.

$ItArgs['Name'] = "Can send mail message from user to self using pipeline " + $ItArgs['Name']

It @ItArgs {
$body = "Greetings from me."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest using distinguishable strings in this test i.e. "Greetings from me again" instead of "Greetings from me", "Second test message" instead of "Test message.

@sethvs sethvs deleted the SendMailMessage branch July 20, 2018 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make all Send-MailMessage parameters accepting value from pipeline by property name

3 participants