Home Forums Programming Powershell email with attachment powershell RE: email with attachment powershell
bruce 1565
SSCrazy
Points: 2574
More actions
December 22, 2017 at 10:21 am
#1973283
The first thing I noticed was $filename = "20172018"$file= "C:\NewFolder"+$filenameThat probably doesn't give you what you expect for the full file path/name. If you leave off the attachment can you successfully send an email?
$filename = "20172018"$file= "C:\NewFolder"+$filename