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")
Sunday, March 20, 2022
Send multiple attacment with powershell email
Subscribe to:
Posts (Atom)