python-tools / sanic-mail Goto Github PK
View Code? Open in Web Editor NEWasync email sender for sanic,
License: MIT License
async email sender for sanic,
License: MIT License
在附件中添加文件,如果是中文名的话,收到邮件显示的名称是乱码。
这个怎么解决?
"Traceback (most recent call last):
File "E:\code\alter_svc\venv\lib\site-packages\aiosmtplib\protocol.py", line 251, in _readline
read_task, timeout, loop=self._loop
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\asyncio\tasks.py", line 384, in wait_for
return await fut
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\asyncio\streams.py", line 585, in readuntil
raise IncompleteReadError(chunk, None)
asyncio.streams.IncompleteReadError: 0 bytes read on a total of None expected bytes
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "F:\tmp\alter-svc\api\views\mail_view.py", line 26, in send_simple
content=data['content'],
File "E:\code\alter_svc\venv\lib\site-packages\sanic_mail.py", line 143, in send_email
return await self.smtp.send_message(message)
File "E:\code\alter_svc\venv\lib\site-packages\aiosmtplib\smtp.py", line 235, in send_message
result = await self.sendmail(sender, recipients, flat_message, timeout=timeout)
File "E:\code\alter_svc\venv\lib\site-packages\aiosmtplib\smtp.py", line 153, in sendmail
await self.mail(sender, options=mail_options, timeout=timeout)
File "E:\code\alter_svc\venv\lib\site-packages\aiosmtplib\esmtp.py", line 228, in mail
b"MAIL", from_string, *options_bytes, timeout=timeout
File "E:\code\alter_svc\venv\lib\site-packages\aiosmtplib\connection.py", line 288, in execute_command
*args, timeout=timeout
File "E:\code\alter_svc\venv\lib\site-packages\aiosmtplib\protocol.py", line 187, in execute_command
response = await self.read_response(timeout=timeout)
File "E:\code\alter_svc\venv\lib\site-packages\aiosmtplib\protocol.py", line 127, in read_response
line = await self._readline(timeout=timeout)
File "E:\code\alter_svc\venv\lib\site-packages\aiosmtplib\protocol.py", line 262, in _readline
raise SMTPServerDisconnected("Unexpected EOF received")
aiosmtplib.errors.SMTPServerDisconnected: Unexpected EOF received
"
python 3.7
sanic 18.12.0
sanic-mail 0.0.2
aiosmtplib 1.0.4
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.