Giter Club home page Giter Club logo

sanic-mail's People

Contributors

adk23333 avatar hsz1273327 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

hasanjafri

sanic-mail's Issues

添加附件中文名乱码

在附件中添加文件,如果是中文名的话,收到邮件显示的名称是乱码。
这个怎么解决?

能给一个蓝图模式的example嘛?

如题:能给一个蓝图模式的example嘛?

我试了几个方法都是报: AttributeError: 'NoneType' object has no attribute 'send_message'

启动py文件配置:
_20180329203204

蓝图里面的方法:
_20180329203207

Send mail error some times

"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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.