Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

How to remove html body icon from send-mailmessage mail

$
0
0

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"


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>