127.0.0.1 - - [24/Dec/2020 15:02:28] "GET /user/get_mail_verify?email=my_email@163.com HTTP/1.1" 500 -
Traceback (most recent call last):
File "D:\Anaconda3\lib\site-packages\flask\app.py", line 2309, in __call__
return self.wsgi_app(environ, start_response)
File "D:\Anaconda3\lib\site-packages\flask\app.py", line 2295, in wsgi_app
response = self.handle_exception(e)
File "D:\Anaconda3\lib\site-packages\flask\app.py", line 1741, in handle_exception
reraise(exc_type, exc_value, tb)
File "D:\Anaconda3\lib\site-packages\flask\_compat.py", line 35, in reraise
raise value
File "D:\Anaconda3\lib\site-packages\flask\app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "D:\Anaconda3\lib\site-packages\flask\app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "D:\Anaconda3\lib\site-packages\flask\app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "D:\Anaconda3\lib\site-packages\flask\_compat.py", line 35, in reraise
raise value
File "D:\Anaconda3\lib\site-packages\flask\app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "D:\Anaconda3\lib\site-packages\flask\app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "d:\src\UserControler.py", line 46, in get_mail_verify
if send_email(email, verify_code) == -1:
File "d:\src\Mail.py", line 31, in send_email
server.sendmail(MAIL_USEERNAME, receiver, message.as_string())
File "D:\Anaconda3\lib\smtplib.py", line 855, in sendmail
msg = _fix_eols(msg).encode('ascii')
UnicodeEncodeError: 'ascii' codec can't encode characters in position 219-220: ordinal not in range(128)