Showing posts with label multiple attachments. Show all posts
Showing posts with label multiple attachments. Show all posts

Sunday, March 20, 2022

Send multiple attacment with powershell email

Here is the sample:

Send-MailMessage -From $emailfrom  -To $emailto -Credential $Credential -SmtpServer $emailserver -port $emailport -Subject "testing" -body $emailbody -attachment @("D:\1.txt","D:\2.txt","D:\3.txt")