PS> help Send-MailMessage -Parameter att*-Attachments <String[]> Specifies the path and file names of files to be attached to the e-mail message. You can use this parameter or pipe the paths and file names to Send-MailMessage.Files piped to Send-MailMessage are bound to the Attachments parameter (which accept ValueFromPipeline and also defines a "PsPath" Alias).That said, the files we pipe MUST RESIDE in the current working directory, otherwise the files path is not honored. Instead, just the file names are used, concatenated with the working directory path, and the command fails..PS> pwdPath ---- D:\PS> Get-ChildItem D:\SkyDrive\temp *.txt | Send-MailMessage -SmtpServer smtp1 -From me@domain.com -to someone@domain.com -Subject Testing123Send-MailMessage : Could not find file 'D:\Document1.txt'.At line:1 char:30+ Get-ChildItem D:\SkyDrive\temp *.txt | Send-MailMessage -SmtpServer smtp1 -From me@domain.com ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Send-MailMessage], FileNotFoundException + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.PowerShell.Commands.SendMailMessageAs a workaround we can first set the current working location to directory where the files are located.PS>Set-Location D:\SkyDrive\tempPS> dir *.txt | Send-MailMessage -SmtpServer smtp1 -From me@domain.com -to someone@domain.com -Subject Testing123
Have you seen this problem before in this product?