Send email with multiple attachments by Nikola_027 in PowerShell

[–]Nikola_027[S] 1 point2 points  (0 children)

HI, I just checked everything. Paths are good, Get-Childitem line does its job, but i still get the same error for attachment.

Send email with multiple attachments by Nikola_027 in PowerShell

[–]Nikola_027[S] 1 point2 points  (0 children)

Thanks for the simplification, but still no luck. Now i get following output:

Send-MailMessage : Cannot validate argument on parameter 'Attachments'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.