Hey,
I have a strange issue...
Send-MailMessage -to 'mail@maildomain.de' -from 'mail2@maildomain.de' -Attachments "\\uncpath\testfile.txt" -Subject "test" -SmtpServer mysmtphost
The File Size of my txt is 19kb, when sending by outlook client it keeps 19kb.
When sending by Powershell script the filesize is 18kb.
I tried with params like utf8 encoding, bodyashtml and so on..but everytime the txt file was send by PS it changes something.
How can I tell Powersehll sending the file attachment without making any changes like outlook client?
thanks
Regards
Daniel