Wednesday

UnicodeDecodeError: 'ascii' codec can't decode byte in position

possible solution will be to eliminate non-ascii characters, here is function in python

import string
def n(self,myStr):
return filter(lambda x: x in string.printable, myStr)

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 ...