I'm using a custom trigger to send an email notification when a request is assigned to a specific group.
The trigger works some of the time, but if the request description contains an apostrophe, then I encounter this error:
Traceback (most recent call last): File "sendemail.py", line 93, in <module> q=sendMailAndGetResponse(configuration,message) File "sendemail.py", line 50, in sendMailAndGetResponse smtpObj.sendmail(fromAdd, toAddList, message) File "D:\python\lib\smtplib.py", line 855, in sendmail msg = _fix_eols(msg).encode('ascii') UnicodeEncodeError: 'ascii' codec can't encode character '\u2019' in position 548: ordinal not in range(128)