I am using send-mailmessage to send server alert with the .txt file, However when I see the email, it was added with the document body icon says "Type: application/octet-stream, Name: ss.txt". I dont this icon to display in there.
Please advise.
Here is the command Im using:
send-mailmessage -to "ss@gg.com" -fromus@gg.com -Body "Please find the file" -SmtpServer server1 -subject "Server Report" -Attachments "c:\temp\$(get-date -f dd-MM-yyyy)-report.txt"