Wednesday

UnicodeDecodeError: 'ascii' codec can't decode byte

This error can be fixed by adding this code on top of python script:

import sys
reload(sys)
sys.setdefaultencoding("latin1")

No comments:

test smtp server with powershell

Send-MailMessage -SMTPServer smtp.domain.com -To [email protected] -From [email protected] -Subject "This is a test email" -Body ...