许愿

Calibre 使用教程之通过邮箱一键推送 Kindle 电子书

给这篇文章写一条留言

提示:带 * 标记的是必填项。您填写的邮箱地址将会被保密。首次留言将会在通过人工审核后显示。如果是提出问题,请务必提供尽可能多信息,这有助于他人更好地理解你所提出的问题。

小伙伴们写下了 650 条留言

  1. 好奇怪啊,我开始能用,中间突然出现错误。
    然后我就关了SMTP服务又再开了。
    还是这个错误。
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\wizard\send_email.py”, line 172, in test_email_settings
    File “site-packages\calibre\utils\smtp.py”, line 135, in sendmail
    File “site-packages\calibre\utils\smtplib.py”, line 617, in login
    SMTPAuthenticationError: (550, ‘User is over flow’)

  2. 你好,我把文件用163邮箱,QQ邮箱单独发送可以,但就是用calibre不行。想问一下是什么原因。
    我文件大小才1m,用的163邮箱,密码用的也是授权码,看了下面那个评论,说是邮件服务器不用填也行,但我不填它一直出错,填了它也出错,填了邮件服务器后测试时它是这样的
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\wizard\send_email.py”, line 209, in test_email_settings
    File “site-packages\calibre\utils\smtp.py”, line 171, in sendmail
    File “site-packages\polyglot\smtplib.py”, line 73, in __init__
    File “site-packages\calibre\utils\smtplib.py”, line 825, in __init__
    File “site-packages\calibre\utils\smtplib.py”, line 275, in __init__
    File “site-packages\calibre\utils\smtplib.py”, line 338, in connect
    File “site-packages\calibre\utils\smtplib.py”, line 830, in _get_socket
    File “socket.py”, line 557, in create_connection
    gaierror: [Errno 11001] getaddrinfo failed

    Log:
    connect: (u’smtp.163.com’, 465)
    connect: (u’smtp.163.com’, 465)

    下面是填了邮件服务器后把我的文件发送到kindle

    calibre, version 4.13.0 (win32, embedded-python: True)
    无法通过电子邮件发送书籍: 失败: 把 毛泽东选集七 发Email到 WODEYOUXIANG110120119@kindle.cn

    Starting job: 把 毛泽东选集七 发Email到 WODEYOUXIANG110120119@kindle.cn
    connect: (u’smtp.163.com’, 465)
    connect: (u’smtp.163.com’, 465)

    Sending failed…

    Traceback (most recent call last):
    File “site-packages\calibre\gui2\email.py”, line 45, in run
    File “site-packages\calibre\gui2\email.py”, line 135, in sendmail
    File “site-packages\calibre\utils\smtp.py”, line 171, in sendmail
    File “site-packages\polyglot\smtplib.py”, line 73, in __init__
    File “site-packages\calibre\utils\smtplib.py”, line 825, in __init__
    File “site-packages\calibre\utils\smtplib.py”, line 275, in __init__
    File “site-packages\calibre\utils\smtplib.py”, line 338, in connect
    File “site-packages\calibre\utils\smtplib.py”, line 830, in _get_socket
    File “socket.py”, line 557, in create_connection
    gaierror: [Errno 11001] getaddrinfo failed

    Retrying in 1 seconds…

    Waiting 1 seconds before sending, to avoid being marked as spam.
    You can control this delay via Preferences->Tweaks
    connect: (u’smtp.163.com’, 465)
    connect: (u’smtp.163.com’, 465)

    Sending failed…

    Traceback (most recent call last):
    File “site-packages\calibre\gui2\email.py”, line 45, in run
    File “site-packages\calibre\gui2\email.py”, line 135, in sendmail
    File “site-packages\calibre\utils\smtp.py”, line 171, in sendmail
    File “site-packages\polyglot\smtplib.py”, line 73, in __init__
    File “site-packages\calibre\utils\smtplib.py”, line 825, in __init__
    File “site-packages\calibre\utils\smtplib.py”, line 275, in __init__
    File “site-packages\calibre\utils\smtplib.py”, line 338, in connect
    File “site-packages\calibre\utils\smtplib.py”, line 830, in _get_socket
    File “socket.py”, line 557, in create_connection
    gaierror: [Errno 11001] getaddrinfo failed

    Job: “把 毛泽东选集七 发Email到 WODEYOUXIANG110120119@kindle.cn” failed with error:
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\threaded_jobs.py”, line 83, in start_work
    File “site-packages\calibre\gui2\email.py”, line 102, in __call__
    gaierror: [Errno 11001] getaddrinfo failed

    Called with args: (u’C:\\Users\\l\\AppData\\Local\\Temp\\calibre_6ehw80\\fgwd8jcaltmpfmt.mobi’, u’Mao Ze Dong Xuan Ji Qi – Wei Zhi.mobi’, u’WODEYOUXIANG110120119@kindle.cn’, u’\u7535\u5b50\u4e66\uff1a \u6bdb\u6cfd\u4e1c\u9009\u96c6\u4e03′, u’\u5df2\u6dfb\u52a0, \u4f60\u53ef\u4ee5\u4ece\u4e2d\u83b7\u53d6\u7535\u5b50\u4e66\n\n\u6bdb\u6cfd\u4e1c\u9009\u96c6\u4e03\n\t\u7531 \u672a\u77e5\n\n\u4f7f\u7528 MOBI \u683c\u5f0f.’) {u’notifications’: , u’log’: , u’abort’: }

    • 你的系统开启全局网络代理了吗?从日志上看,问题的真正原因是这行提示:File “socket.py”, line 557, in create_connection,好像是 Socket 连接有问题导致无法连接 SMTP 服务器。

      • 你好,系统开启全局网络代理是什么意思啊,是电脑“网络和Internet”中“代理”里的“手动设置代理”吗?如果是的话,地址和端口应该分别怎么填啊?上网上搜了一下,还是不太清楚。
        http://a1.qpic.cn/psc?/V11gtIYu0GWtD5/Ztt4hf0fP2uyClLJO4N7w6V*9baldRsfVCy3USMnh0B0sAgt7P9z.05W7sfM2jBZIoymNnOoKmFhhBzy52uOFA!!/b&ek=1&kp=1&pt=0&bo=WAOiAlgDogIDMBU!&tl=1&vuin=2754278686&tm=1591203600&sce=50-1-1&rf=4-0

        • 可能是我没有表达清楚。我的本意是,如果你开启了全局代理(也就是翻墙软件),并且该代理没有正常工作,可能就会出现那个问题。

            • 这个问题的原因不明确,一句话没有办法说清楚,需要自己测试,我用自己的电脑无法重现你所说的错误。

              你可以安装一个 Python3,然后将以下代码保存为 test-socket.py 用 Python3 执行。

              import socket
              
              host = 'smtp.163.com'
              port = 465
              print(socket.gethostbyname(host))
              print('------')
              print(socket.getaddrinfo(host, port))
              print('------')
              print(socket.create_connection((host, port)))

              如果正常可以看到类似下面这样的信息,如果出错了,看看会不会有更详细的提示信息。

              220.181.12.11
              ------
              [(<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('220.181.12.11', 465)), (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('220.181.12.13', 465)), (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_DGRAM: 2>, 17, '', ('220.181.12.15', 465)), (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('220.181.12.15', 465)), (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_DGRAM: 2>, 17, '', ('220.181.12.11', 465)), (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_DGRAM: 2>, 17, '', ('220.181.12.13', 465)), (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_DGRAM: 2>, 17, '', ('220.181.12.14', 465)), (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('220.181.12.14', 465)), (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_DGRAM: 2>, 17, '', ('220.181.12.12', 465)), (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('220.181.12.12', 465)), (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_DGRAM: 2>, 17, '', ('220.181.12.16', 465)), (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('220.181.12.16', 465)), (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_DGRAM: 2>, 17, '', ('220.181.12.18', 465)), (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('220.181.12.18', 465)), (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_DGRAM: 2>, 17, '', ('220.181.12.17', 465)), (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('220.181.12.17', 465))]
              ------
              <socket.socket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.1.3', 59123), raddr=('220.181.12.11', 465)>
  3. 不用那么麻烦,这个其实只填写kindle的接收邮箱,发信人地址。
    其他的邮件服务器不用管它就行。
    calibre说了可选择是否使用邮件服务器发送,不用也没问题,我一直空着就能使用。
    如图:https://s1.ax1x.com/2020/05/30/tMF6Re.jpg
    https://imgchr.com/i/tMF6Re

      • 经过我使用三个账号进行测试,
        只填写kindle的接收邮箱和发信人地址的话有可能会引发二次验证,
        因此还是不建议留空邮件服务器最好还是使用指定邮件服务器

  4. Traceback (most recent call last):
    File “site-packages\calibre\gui2\wizard\send_email.py”, line 209, in test_email_settings
    File “site-packages\calibre\utils\smtp.py”, line 171, in sendmail
    File “site-packages\polyglot\smtplib.py”, line 73, in __init__
    File “site-packages\calibre\utils\smtplib.py”, line 825, in __init__
    File “site-packages\calibre\utils\smtplib.py”, line 275, in __init__
    File “site-packages\calibre\utils\smtplib.py”, line 338, in connect
    File “site-packages\calibre\utils\smtplib.py”, line 830, in _get_socket
    File “socket.py”, line 575, in create_connection
    error: [Errno 10060]

    Log:
    connect: (u’smtp.163.com’, 465)
    connect: (u’smtp.163.com’, 465)
    不成功呀,网络是有代理的,但是我需要咋设置才能成功呀?

      • 你好,我出现了和以上那位同样的问题,但是但我关掉代理,它也没有发送成功

  5. 楼主帮忙看看我的,测试成功,但是发不了

    Starting job: 把 The Girl with the Dragon Tattoo 发Email到 yansicong11@kindle.cn
    connect: (u’smtp.163.com’, 465)
    connect: (u’smtp.163.com’, 465)
    reply: ‘220 163.com Anti-spam GT for Coremail System (163com[20141201])\r\n’
    reply: retcode (220); Msg: 163.com Anti-spam GT for Coremail System (163com[20141201])
    connect: 163.com Anti-spam GT for Coremail System (163com[20141201])
    send: u’ehlo [127.0.0.1]\r\n’
    reply: ‘250-mail\r\n’
    reply: ‘250-PIPELINING\r\n’
    reply: ‘250-AUTH LOGIN PLAIN \r\n’
    reply: ‘250-AUTH=LOGIN PLAIN\r\n’
    reply: ‘250-coremail 1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2UrcQncHUCa0xDrUUUUj\r\n’
    reply: ‘250-STARTTLS\r\n’
    reply: ‘250 8BITMIME\r\n’
    reply: retcode (250); Msg: mail
    PIPELINING
    AUTH LOGIN PLAIN
    AUTH=LOGIN PLAIN
    coremail 1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2UrcQncHUCa0xDrUUUUj
    STARTTLS
    8BITMIME
    send: AUTH
    reply: ‘235 Authentication successful\r\n’
    reply: retcode (235); Msg: Authentication successful
    send: u’mail FROM:\r\n’
    reply: ‘250 Mail OK\r\n’
    reply: retcode (250); Msg: Mail OK
    send: u’rcpt TO:\r\n’
    reply: ‘250 Mail OK\r\n’
    reply: retcode (250); Msg: Mail OK
    send: ‘data\r\n’
    reply: ‘354 End data with .\r\n’
    reply: retcode (354); Msg: End data with .
    data: (354, ‘End data with .’)
    send: ‘Content-Type: multipart/mixed; boundary=”===============4979545822211526848==”\r\nMIME-Version: 1.0…
    send: ‘quit\r\n’

    Sending failed…

    Traceback (most recent call last):
    File “site-packages/calibre/gui2/email.py”, line 45, in run
    File “site-packages/calibre/gui2/email.py”, line 135, in sendmail
    File “site-packages/calibre/utils/smtp.py”, line 185, in sendmail
    File “site-packages/calibre/utils/smtplib.py”, line 774, in sendmail
    File “site-packages/calibre/utils/smtplib.py”, line 532, in data
    File “site-packages/calibre/utils/smtplib.py”, line 354, in send
    SMTPServerDisconnected: Server not connected

    Retrying in 1 seconds…

    connect: (u’smtp.163.com’, 465)
    connect: (u’smtp.163.com’, 465)
    reply: ‘220 163.com Anti-spam GT for Coremail System (163com[20141201])\r\n’
    reply: retcode (220); Msg: 163.com Anti-spam GT for Coremail System (163com[20141201])
    connect: 163.com Anti-spam GT for Coremail System (163com[20141201])
    send: u’ehlo [127.0.0.1]\r\n’
    reply: ‘250-mail\r\n’
    reply: ‘250-PIPELINING\r\n’
    reply: ‘250-AUTH LOGIN PLAIN \r\n’
    reply: ‘250-AUTH=LOGIN PLAIN\r\n’
    reply: ‘250-coremail 1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2Ur3AaajUCa0xDrUUUUj\r\n’
    reply: ‘250-STARTTLS\r\n’
    reply: ‘250 8BITMIME\r\n’
    reply: retcode (250); Msg: mail
    PIPELINING
    AUTH LOGIN PLAIN
    AUTH=LOGIN PLAIN
    coremail 1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2Ur3AaajUCa0xDrUUUUj
    STARTTLS
    8BITMIME
    send: AUTH
    reply: ‘235 Authentication successful\r\n’
    reply: retcode (235); Msg: Authentication successful
    send: u’mail FROM:\r\n’
    reply: ‘250 Mail OK\r\n’
    reply: retcode (250); Msg: Mail OK
    send: u’rcpt TO:\r\n’
    reply: ‘250 Mail OK\r\n’
    reply: retcode (250); Msg: Mail OK
    send: ‘data\r\n’
    reply: ‘354 End data with .\r\n’
    reply: retcode (354); Msg: End data with .
    data: (354, ‘End data with .’)
    send: ‘Content-Type: multipart/mixed; boundary=”===============8884126181478389006==”\r\nMIME-Version: 1.0…
    send: ‘quit\r\n’

    Sending failed…

    Traceback (most recent call last):
    File “site-packages/calibre/gui2/email.py”, line 45, in run
    File “site-packages/calibre/gui2/email.py”, line 135, in sendmail
    File “site-packages/calibre/utils/smtp.py”, line 185, in sendmail
    File “site-packages/calibre/utils/smtplib.py”, line 774, in sendmail
    File “site-packages/calibre/utils/smtplib.py”, line 532, in data
    File “site-packages/calibre/utils/smtplib.py”, line 354, in send
    SMTPServerDisconnected: Server not connected

    Job: “把 The Girl with the Dragon Tattoo 发Email到 yansicong11@kindle.cn” failed with error:
    Traceback (most recent call last):
    File “site-packages/calibre/gui2/threaded_jobs.py”, line 83, in start_work
    File “site-packages/calibre/gui2/email.py”, line 102, in __call__
    SMTPServerDisconnected: Server not connected

    Called with args: (u’/var/folders/z6/thtvx1s92kjfnm75c4cjkf8w0000gn/C/calibre_4.13.0_tmp_Kbkr2p/3GBVkjcaltmpfmt.mobi’, u’The Girl with the Dragon Tattoo – Stieg Larsson.mobi’, u’yansicong11@kindle.cn’, u’\u7535\u5b50\u4e66\uff1a The Girl with the Dragon Tattoo’, u’\u5df2\u6dfb\u52a0, \u4f60\u53ef\u4ee5\u4ece\u4e2d\u83b7\u53d6\u7535\u5b50\u4e66\n\nThe Girl with the Dragon Tattoo\n\t\u7531 Stieg Larsson\n\n\u4f7f\u7528 MOBI \u683c\u5f0f.’) {u’abort’: , u’log’: , u’notifications’: }

  6. 你好,我的测试邮件是发送成功了,但用calibre传送时总是出现错误,麻烦你帮我看下代码,谢谢。

    Sending failed…

    Traceback (most recent call last):
    File “site-packages\calibre\gui2\email.py”, line 45, in run
    File “site-packages\calibre\gui2\email.py”, line 117, in sendmail
    File “site-packages\calibre\utils\smtp.py”, line 279, in compose_mail
    File “site-packages\calibre\utils\smtp.py”, line 104, in create_mail
    File “email\encoders.py”, line 45, in encode_base64
    File “email\encoders.py”, line 32, in _bencode
    File “base64.py”, line 323, in encodestring
    MemoryError

    Retrying in 1 seconds…

    Waiting 1 seconds before sending, to avoid being marked as spam.
    You can control this delay via Preferences->Tweaks

    Sending failed…

    Traceback (most recent call last):
    File “site-packages\calibre\gui2\email.py”, line 45, in run
    File “site-packages\calibre\gui2\email.py”, line 117, in sendmail
    File “site-packages\calibre\utils\smtp.py”, line 279, in compose_mail
    File “site-packages\calibre\utils\smtp.py”, line 104, in create_mail
    File “email\encoders.py”, line 45, in encode_base64
    File “email\encoders.py”, line 32, in _bencode
    File “base64.py”, line 323, in encodestring
    MemoryError

    Job: “把 城市与狗 发Email到 failed with error:
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\threaded_jobs.py”, line 83, in start_work
    File “site-packages\calibre\gui2\email.py”, line 102, in __call__
    MemoryError

    Called with args: (u’C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\calibre_qsrblh\\ten8tgcaltmpfmt.mobi’, u’Cheng Shi Yu Gou – (Mi Lu )Ma Li Ao _Ba Er Jia Si _Lue Sa Zhu Zhao Shao Tian Yi.mobi’, u’Sololove_free97@kindle.cn’, u’\u7535\u5b50\u4e66\uff1a \u57ce\u5e02\u4e0e\u72d7′, u’\u5df2\u6dfb\u52a0, \u4f60\u53ef\u4ee5\u4ece\u4e2d\u83b7\u53d6\u7535\u5b50\u4e66\n\n\u57ce\u5e02\u4e0e\u72d7\n\t\u7531 \uff08\u79d8\u9c81\uff09\u9a6c\u91cc\u5965\xb7\u5df4\u5c14\u52a0\u65af\xb7\u7565\u8428\u8457\u8d75\u7ecd\u5929\u8bd1\n\n\u4f7f\u7528 MOBI \u683c\u5f0f.’) {u’abort’: , u’log’: , u’notifications’: }

  7. 请问我在calibre里面重新设定一个新的发送邮箱,选择的是hotmail邮箱,在test之后也显示发送成功,但是我用calibre发送 kindle却没有任何接受显示 ,您知道是什么原因吗 谢谢

      • 你好,感谢回复,我的问题已解决,我修改接受邮箱之后没有在amazon账户下添加信任新邮箱。 再次感谢您的回复。

  8. 真的很神奇,用calibre转换出来的mobi(new) 就不能推送,kindlegen生成的就可以

    • KindleGen 是亚马逊官方提供的转换工具,转换的 MOBI 格式文件与亚马逊的个人文档服务兼容性肯定是最好的。而 Calibre 的转换算法可能是通过其它方式实现的,与亚马逊官方实现有差异,所以很多时候会出现不兼容的情况。

  9. 请问邮箱这是什么情况,以前我都能使用的

    Traceback (most recent call last):
    File “site-packages\calibre\gui2\wizard\send_email.py”, line 209, in test_email_settings
    File “site-packages\calibre\utils\smtp.py”, line 182, in sendmail
    File “site-packages\calibre\utils\smtplib.py”, line 605, in login
    File “site-packages\calibre\utils\smtplib.py”, line 567, in ehlo_or_helo_if_needed
    SMTPHeloError: (500, ‘Error: bad syntax’)

  10. 你好我按照教程一步步走下来后面就不知道怎么弄了~能教我一下么?谢谢~
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\wizard\send_email.py”, line 209, in test_email_settings
    File “site-packages\calibre\utils\smtp.py”, line 185, in sendmail
    File “site-packages\calibre\utils\smtplib.py”, line 762, in sendmail
    SMTPSenderRefused: (553, ‘Mail from must equal authorized user’, u’1584624613@qq.com’)

    Log:
    connect: (u’smtp.163.com’, 465)
    connect: (u’smtp.163.com’, 465)
    reply: ‘220 163.com Anti-spam GT for Coremail System (163com[20141201])\r\n’
    reply: retcode (220); Msg: 163.com Anti-spam GT for Coremail System (163com[20141201])
    connect: 163.com Anti-spam GT for Coremail System (163com[20141201])
    send: u’ehlo [192.168.1.106]\r\n’
    reply: ‘250-mail\r\n’
    reply: ‘250-PIPELINING\r\n’
    reply: ‘250-AUTH LOGIN PLAIN\r\n’
    reply: ‘250-AUTH=LOGIN PLAIN\r\n’
    reply: ‘250-coremail 1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2Urt9EL6UCa0xDrUUUUj\r\n’
    reply: ‘250-STARTTLS\r\n’
    reply: ‘250 8BITMIME\r\n’
    reply: retcode (250); Msg: mail
    PIPELINING
    AUTH LOGIN PLAIN
    AUTH=LOGIN PLAIN
    coremail 1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2Urt9EL6UCa0xDrUUUUj
    STARTTLS
    8BITMIME
    send: AUTH
    reply: ‘235 Authentication successful\r\n’
    reply: retcode (235); Msg: Authentication successful
    send: u’mail FROM:\r\n’
    reply: ‘553 Mail from must equal authorized user\r\n’
    reply: retcode (553); Msg: Mail from must equal authorized user
    send: ‘rset\r\n’
    reply: ‘250 OK\r\n’
    reply: retcode (250); Msg: OK
    send: ‘quit\r\n’
    reply: ‘221 Bye\r\n’
    reply: retcode (221); Msg: Bye

    • 错误提示 Mail from must equal authorized user,你的用户名和 Email 必须一致。简单说就是直接用你的 Email 做用户名就可以了。

  11. 防火墙关了,换了一本书,可以转换了,但是还是发送不了,哭了:

    Starting job: 把 Giorgio Agamben, Kevin Attell 发Email到 1072037971_6j9DvE@kindle.cn
    connect: (u’smtp.qq.com’, 465)
    connect: (u’smtp.qq.com’, 465)

    Sending failed…

    Traceback (most recent call last):
    File “site-packages\calibre\gui2\email.py”, line 45, in run
    File “site-packages\calibre\gui2\email.py”, line 135, in sendmail
    File “site-packages\calibre\utils\smtp.py”, line 171, in sendmail
    File “site-packages\polyglot\smtplib.py”, line 73, in __init__
    File “site-packages\calibre\utils\smtplib.py”, line 825, in __init__
    File “site-packages\calibre\utils\smtplib.py”, line 275, in __init__
    File “site-packages\calibre\utils\smtplib.py”, line 338, in connect
    File “site-packages\calibre\utils\smtplib.py”, line 831, in _get_socket
    File “ssl.py”, line 931, in wrap_socket
    File “ssl.py”, line 599, in __init__
    File “ssl.py”, line 828, in do_handshake
    error: [Errno 10054]

    Retrying in 1 seconds…

    Waiting 1 seconds before sending, to avoid being marked as spam.
    You can control this delay via Preferences->Tweaks
    connect: (u’smtp.qq.com’, 465)
    connect: (u’smtp.qq.com’, 465)

    Sending failed…

    Traceback (most recent call last):
    File “site-packages\calibre\gui2\email.py”, line 45, in run
    File “site-packages\calibre\gui2\email.py”, line 135, in sendmail
    File “site-packages\calibre\utils\smtp.py”, line 171, in sendmail
    File “site-packages\polyglot\smtplib.py”, line 73, in __init__
    File “site-packages\calibre\utils\smtplib.py”, line 825, in __init__
    File “site-packages\calibre\utils\smtplib.py”, line 275, in __init__
    File “site-packages\calibre\utils\smtplib.py”, line 338, in connect
    File “site-packages\calibre\utils\smtplib.py”, line 830, in _get_socket
    File “socket.py”, line 575, in create_connection
    error: [Errno 10060]

    Job: “把 Giorgio Agamben, Kevin Attell 发Email到 1072037971_6j9DvE@kindle.cn” failed with error:
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\threaded_jobs.py”, line 83, in start_work
    File “site-packages\calibre\gui2\email.py”, line 102, in __call__
    error: [Errno 10060]

    • 这还是网络方面的问题。建议你下载一个邮箱客户端,然后试试看用 SMTP 能不能发信,这样能排除 Calibre 自身的原因。

  12. 这是测试的时候的:

    Traceback (most recent call last):
    File “site-packages\calibre\gui2\wizard\send_email.py”, line 209, in test_email_settings
    File “site-packages\calibre\utils\smtp.py”, line 171, in sendmail
    File “site-packages\polyglot\smtplib.py”, line 73, in __init__
    File “site-packages\calibre\utils\smtplib.py”, line 825, in __init__
    File “site-packages\calibre\utils\smtplib.py”, line 275, in __init__
    File “site-packages\calibre\utils\smtplib.py”, line 338, in connect
    File “site-packages\calibre\utils\smtplib.py”, line 831, in _get_socket
    File “ssl.py”, line 931, in wrap_socket
    File “ssl.py”, line 599, in __init__
    File “ssl.py”, line 828, in do_handshake
    error: [Errno 10054]

    Log:
    connect: (u’smtp.yeah.net’, 465)
    connect: (u’smtp.yeah.net’, 465)

  13. 转化书籍的时候也不行…

    转换书籍 第 1 本,共 1 本 (故事:材质、结构、风格和银幕剧作的原理)
    C:\Program Files\Calibre2\\app\pylib.zip\dateutil\parser\_parser.py:1177: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
    Conversion options changed from defaults:
    output_profile: u’kindle’
    read_metadata_from_opf: u’C:\\Users\\gus\\AppData\\Local\\Temp\\calibre_ijbqom\\odmesv.opf’
    cover: u’C:\\Users\\gus\\AppData\\Local\\Temp\\calibre_ijbqom\\ybdojr.jpeg’
    verbose: 2
    Resolved conversion options
    calibre version: 4.11.2
    {‘asciiize’: False,
    ‘author_sort’: None,
    ‘authors’: None,
    ‘base_font_size’: 0.0,
    ‘book_producer’: None,
    ‘change_justification’: u’original’,
    ‘chapter’: u”//*[((name()=’h1′ or name()=’h2′) and re:test(., ‘\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))’, ‘i’)) or @class = ‘chapter’]”,
    ‘chapter_mark’: u’pagebreak’,
    ‘comments’: None,
    ‘cover’: u’C:\\Users\\gus\\AppData\\Local\\Temp\\calibre_ijbqom\\ybdojr.jpeg’,
    ‘debug_pipeline’: None,
    ‘dehyphenate’: True,
    ‘delete_blank_paragraphs’: True,
    ‘disable_font_rescaling’: False,
    ‘dont_compress’: False,
    ‘duplicate_links_in_toc’: False,
    ’embed_all_fonts’: False,
    ’embed_font_family’: None,
    ‘enable_heuristics’: False,
    ‘expand_css’: False,
    ‘extra_css’: None,
    ‘extract_to’: None,
    ‘filter_css’: u”,
    ‘fix_indents’: True,
    ‘font_size_mapping’: None,
    ‘format_scene_breaks’: True,
    ‘html_unwrap_factor’: 0.4,
    ‘input_encoding’: None,
    ‘input_profile’: ,
    ‘insert_blank_line’: False,
    ‘insert_blank_line_size’: 0.5,
    ‘insert_metadata’: False,
    ‘isbn’: None,
    ‘italicize_common_cases’: True,
    ‘keep_ligatures’: False,
    ‘language’: None,
    ‘level1_toc’: None,
    ‘level2_toc’: None,
    ‘level3_toc’: None,
    ‘line_height’: 0.0,
    ‘linearize_tables’: False,
    ‘margin_bottom’: 5.0,
    ‘margin_left’: 5.0,
    ‘margin_right’: 5.0,
    ‘margin_top’: 5.0,
    ‘markup_chapter_headings’: True,
    ‘max_toc_links’: 50,
    ‘minimum_line_height’: 120.0,
    ‘mobi_file_type’: u’old’,
    ‘mobi_ignore_margins’: False,
    ‘mobi_keep_original_images’: False,
    ‘mobi_toc_at_start’: False,
    ‘no_chapters_in_toc’: False,
    ‘no_inline_navbars’: True,
    ‘no_inline_toc’: False,
    ‘output_profile’: ,
    ‘page_breaks_before’: u’/’,
    ‘personal_doc’: u'[PDOC]’,
    ‘prefer_author_sort’: False,
    ‘prefer_metadata_cover’: False,
    ‘pretty_print’: False,
    ‘pubdate’: None,
    ‘publisher’: None,
    ‘rating’: None,
    ‘read_metadata_from_opf’: u’C:\\Users\\gus\\AppData\\Local\\Temp\\calibre_ijbqom\\odmesv.opf’,
    ‘remove_fake_margins’: True,
    ‘remove_first_image’: False,
    ‘remove_paragraph_spacing’: False,
    ‘remove_paragraph_spacing_indent_size’: 1.5,
    ‘renumber_headings’: True,
    ‘replace_scene_breaks’: u”,
    ‘search_replace’: ‘[]’,
    ‘series’: None,
    ‘series_index’: None,
    ‘share_not_sync’: False,
    ‘smarten_punctuation’: False,
    ‘sr1_replace’: None,
    ‘sr1_search’: None,
    ‘sr2_replace’: None,
    ‘sr2_search’: None,
    ‘sr3_replace’: None,
    ‘sr3_search’: None,
    ‘start_reading_at’: None,
    ‘subset_embedded_fonts’: False,
    ‘tags’: None,
    ‘timestamp’: None,
    ‘title’: None,
    ‘title_sort’: None,
    ‘toc_filter’: None,
    ‘toc_threshold’: 6,
    ‘toc_title’: None,
    ‘transform_css_rules’: ‘[]’,
    ‘unsmarten_punctuation’: False,
    ‘unwrap_lines’: True,
    ‘use_auto_toc’: False,
    ‘verbose’: 2}
    InputFormatPlugin: EPUB Input running
    on C:\Users\gus\AppData\Local\Temp\calibre_ijbqom\cur5jb.epub
    EPUB appears to be invalid ZIP file, trying a more forgiving ZIP parser
    Traceback (most recent call last):
    File “site-packages\calibre\ebooks\conversion\plugins\epub_input.py”, line 262, in convert
    File “site-packages\calibre\utils\zipfile.py”, line 770, in __init__
    File “site-packages\calibre\utils\zipfile.py”, line 805, in _GetContents
    File “site-packages\calibre\utils\zipfile.py”, line 820, in _RealGetContents
    BadZipfile: File is not a zip file

    Python function terminated unexpectedly
    Premature end of file (Error Code: 1)
    Traceback (most recent call last):
    File “site.py”, line 114, in main
    File “site.py”, line 88, in run_entry_point
    File “site-packages\calibre\utils\ipc\worker.py”, line 209, in main
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 43, in gui_convert_override
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 28, in gui_convert
    File “site-packages\calibre\ebooks\conversion\plumber.py”, line 1110, in run
    File “site-packages\calibre\customize\conversion.py”, line 246, in __call__
    File “site-packages\calibre\ebooks\conversion\plugins\epub_input.py”, line 269, in convert
    File “site-packages\calibre\utils\localunzip.py”, line 253, in extractall
    File “site-packages\calibre\utils\localunzip.py”, line 233, in _extractall
    File “site-packages\calibre\utils\localunzip.py”, line 166, in copy_stored_file
    ValueError: Premature end of file

    • 错误提示 BadZipfile: File is not a zip file,这应该是源文件损坏的原因。建议多测试几个不同的文件,看是否是个例,如果是的话那应该就可以确定是源文件的问题了。

  14. 请问为什么换了yeah,163,outlook都不行啊….
    这是yeah的:

    Traceback (most recent call last):
    File “site-packages\calibre\gui2\wizard\send_email.py”, line 209, in test_email_settings
    File “site-packages\calibre\utils\smtp.py”, line 171, in sendmail
    File “site-packages\polyglot\smtplib.py”, line 73, in __init__
    File “site-packages\calibre\utils\smtplib.py”, line 825, in __init__
    File “site-packages\calibre\utils\smtplib.py”, line 275, in __init__
    File “site-packages\calibre\utils\smtplib.py”, line 338, in connect
    File “site-packages\calibre\utils\smtplib.py”, line 831, in _get_socket
    File “ssl.py”, line 931, in wrap_socket
    File “ssl.py”, line 599, in __init__
    File “ssl.py”, line 828, in do_handshake
    error: [Errno 10054]

    Log:
    connect: (u’smtp.yeah.net’, 465)
    connect: (u’smtp.yeah.net’, 465)

  15. 您好,打扰了,我因为换电脑,重装了celibre,按照教程重新设置以后出现了一下错误,麻烦分析一下,哪里有问题呢?

    Traceback (most recent call last):
    File “site-packages\calibre\gui2\wizard\send_email.py”, line 209, in test_email_settings
    File “site-packages\calibre\utils\smtp.py”, line 185, in sendmail
    File “site-packages\calibre\utils\smtplib.py”, line 773, in sendmail
    SMTPRecipientsRefused: {u’\u65b0\u90ae\u4ef6\u5730\u57401′: (550, ‘Invalid User: \xe6\x96\xb0\xe9\x82\xae\xe4\xbb\xb6\xe5\x9c\xb0\xe5\x9d\x801′)}

    Log:
    connect: (u’smtp.163.com’, 465)
    connect: (u’smtp.163.com’, 465)
    reply: ‘220 163.com Anti-spam GT for Coremail System (163com[20141201])\r\n’
    reply: retcode (220); Msg: 163.com Anti-spam GT for Coremail System (163com[20141201])
    connect: 163.com Anti-spam GT for Coremail System (163com[20141201])
    send: u’ehlo xn--7.host-pz4ox7fu39a\r\n’
    reply: ‘250-mail\r\n’
    reply: ‘250-PIPELINING\r\n’
    reply: ‘250-AUTH LOGIN PLAIN\r\n’
    reply: ‘250-AUTH=LOGIN PLAIN\r\n’
    reply: ‘250-coremail 1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2Urxza0rUCa0xDrUUUUj\r\n’
    reply: ‘250-STARTTLS\r\n’
    reply: ‘250 8BITMIME\r\n’
    reply: retcode (250); Msg: mail
    PIPELINING
    AUTH LOGIN PLAIN
    AUTH=LOGIN PLAIN
    coremail 1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2Urxza0rUCa0xDrUUUUj
    STARTTLS
    8BITMIME
    send: AUTH
    reply: ‘235 Authentication successful\r\n’
    reply: retcode (235); Msg: Authentication successful
    send: u’mail FROM:\r\n’
    reply: ‘250 Mail OK\r\n’
    reply: retcode (250); Msg: Mail OK
    send: u’rcpt TO:\r\n’
    reply: ‘550 Invalid User: \xe6\x96\xb0\xe9\x82\xae\xe4\xbb\xb6\xe5\x9c\xb0\xe5\x9d\x801\r\n’
    reply: retcode (550); Msg: Invalid User: 新邮件地址1
    send: ‘rset\r\n’
    reply: ‘250 OK\r\n’
    reply: retcode (250); Msg: OK
    send: ‘quit\r\n’
    reply: ‘221 Bye\r\n’
    reply: retcode (221); Msg: Bye

  16. Traceback (most recent call last):
    File “site-packages\calibre\gui2\wizard\send_email.py”, line 209, in test_email_settings
    File “site-packages\calibre\utils\smtp.py”, line 182, in sendmail
    File “site-packages\calibre\utils\smtplib.py”, line 645, in login
    SMTPAuthenticationError: (535, ‘Error: authentication failed’)

    Log:
    connect: (u’smtp.163.com’, 587)
    connect: (u’smtp.163.com’, 587)
    reply: ‘220 163.com Anti-spam GT for Coremail System (163com[20141201])\r\n’
    reply: retcode (220); Msg: 163.com Anti-spam GT for Coremail System (163com[20141201])
    connect: 163.com Anti-spam GT for Coremail System (163com[20141201])
    send: u’ehlo [192.168.43.239]\r\n’
    reply: ‘250-mail\r\n’
    reply: ‘250-PIPELINING\r\n’
    reply: ‘250-AUTH LOGIN PLAIN \r\n’
    reply: ‘250-AUTH=LOGIN PLAIN\r\n’
    reply: ‘250-coremail 1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2Urahn79UCa0xDrUUUUj\r\n’
    reply: ‘250-STARTTLS\r\n’
    reply: ‘250 8BITMIME\r\n’
    reply: retcode (250); Msg: mail
    PIPELINING
    AUTH LOGIN PLAIN
    AUTH=LOGIN PLAIN
    coremail 1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2Urahn79UCa0xDrUUUUj
    STARTTLS
    8BITMIME
    send: AUTH
    reply: ‘535 Error: authentication failed\r\n’
    reply: retcode (535); Msg: Error: authentication failed
    这个是什么问题,我开了开了授权码和POP3/SMTP/IMAP服务
    163和126都不可以

    • 错误提示 SMTPAuthenticationError 还是账户验证失败。开启授权码之后,配制 SMTP 时填写的密码是授权码吗?

返回到顶部