While sending email an error occurs:
'django.db.utils.DatabaseError: invalid byte sequence for encoding "UTF8": 0xb7
HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".' (Postgres db). Possible problem with special characters in text of message. A way of solving this problem is using base64 for storing pickled message object in database.