Calibre 使用教程之邮件一键推送电子书

Kindle 伴侣在之前曾经写过一个教程《通过电子邮箱附件推送文档到Kindle》,内容是手动通过电子邮箱推送电子书到【我的内容】,下面介绍的用 Calibre 推送的方法可以使推送过程更加简化。跟着下面的步骤简单的设置以下就可以享受便捷的一键推送了:

一、Calibre 的设置及推送步骤

在开始下面步骤之前请确保你有一个电子邮箱并且你的Kindle设备已经和你的亚马逊账号进行了绑定。如果没有亚马逊账号请点击这里(亚马逊中国)或点击这里(美国亚马逊)先自行注册。详细步骤请参见《通过电子邮箱附件推送文档到Kindle》。

1、下载安装Calibre

Calibre下载页面:https://bookfere.com/tools#calibre

2、添加Kindle接收推送的邮箱

点击“首选项”图标,找到“分享”分类,点击“通过邮件分享”。在弹出的对话框中点击右边的“添加邮件地址”,填入和你的Kindle设备绑定的推送接收邮箱(可添加多个)。接收推送的邮箱可以在【管理我的内容和设备】中的【我的设备】选项卡页面找到。

3、填写推送邮箱

在下面的“发信人地址”中填写你的电子邮箱。注意请确保该邮箱已经添加到亚马逊官网 Kindle 管理后台的【设置】页面中的“已认可的发件人电子邮箱列表”中(这一项在设置页面底部)。

4、设置推送邮箱的邮件服务器

接下来设置“邮件服务器”,如果你用的是gmail或live邮箱,直接点右边相应的图标填写你的邮箱地址及用户名密码即可,软件将会自动为你填写主机名和端口。如果使用其他的邮箱请自行填写邮箱服务器设置并填入你的邮箱用户名和密码。常见的几个邮箱服务器如下:

  • 163 邮箱:主机名 smtp.163.com 端口 465 或 587(加密类型:SSL)*推荐
  • 126 邮箱:主机名 smtp.126.com 端口 465 或 587(加密类型:SSL)
  • yeah 邮箱:主机名 smtp.yeah.net 端口 465 或 587(加密类型:SSL)
  • 新浪邮箱:主机名 smtp.sina.com 端口 端口 465(加密类型:SSL)
  • Gmail 邮箱:主机名 smtp.gmail.com 端口 587(加密类型:TLS)
  • Hotmail/Live/Outlook邮箱:主机名 smtp-mail.outlook.com 端口 587(加密类型:TLS)
  • QQ 邮箱:主机名 smtp.qq.com 端口 465(加密类型:SSL) *不推荐

* 小提示 1: 一定要仔细检查填写的端口是 465 或 587,而不是 465、578等。
* 小提示 2: 以上列出的邮箱附件大小除 Gmail/Outlook 是 25MB 外皆为 50MB。
* 小提示 3: 目前 Gmail 在大陆处于被封锁状态,暂时无法使用。
* 小提示 4: 新注册的 163 邮箱无法立即使用。
* 小提示 5: 163 邮箱如果开启了授权码,请使用授权码而不是登录密码。

邮件参数填写效果如下:

Calibre 邮件参数设置

5、测试邮件推送

全部设置完毕后点击右下角的“测试邮件发送”按钮,会出现“该操作会在屏幕上明文显示你的电子邮件地址密码。要继续吗?”的提示,点击“是”会弹出一个测试对话框,点击“测试”按钮,如果显示框出现“邮件已发出”即表示设置成功,否则请检查设置重试。点击“确定”按钮退出该对话框。点击左上角的“应用”按钮保存刚才的设置,结束设置。

* 测试邮件发出后不久,亚马逊Kindle客服的自动回复系统会向你的推送邮箱发送一封主题为“你发送至Kindle的邮件未附任何文件附件”的提示邮件,请忽略。

6、用右键一键推送图书

回到主界面书库,选择一个或多个电子书,右键点击所选电子书,在弹出的菜单里将鼠标指针悬浮到“连接/共享”,在弹出的子菜单中点击“发送右键至***@kindle.cn”(***@kindle.cn 就是第2步填写的那个邮箱),就可以直接把这些电子书发送到你亚马逊账户中的【我的内容】中了。

当我们将epub等格式的电子书转换成mobi格式后,只需要通过右键菜单就可以将转换后的电子书推送到亚马逊的云端了,是不是很方便。快来试试吧!

二、错误的排查及解决方法

* 无法推送成功请检查:

如果你无法推送成功,请仔细检查“发信人地址”和邮件服务器中的“用户名”是否都是“xxx@xxx.com”这样的格式,比如你的邮件是“ test@simple.com”,那么设置中的“用户名”和“发信地址”都应该填写“test@simple.com”,“用户名”不能只填写“test”,“发信地址”也不能只填写“@simple.com”。另外还需要检查端口是否填写正确,一般邮箱可选择“加密”类型为“SSL”,端口号应该填写 465 或 587;Gmail 的“加密”类型为 TLS,端口号为 587。

* 出现错误提示的解决方法:

如果设置完成后测试推送或推送电子书时出现以下错误,请按照相应的解决办法解决:

1、错误提示之一

SMTPAuthenticationError: (550, ‘\xd3\xc3\xbb\xa7\xb1\xbb\xcb\xf8\xb6\xa8′)

【解决办法】

错误提示中的“乱码”意思是“用户被锁定”。如果你的 163 邮箱是新注册账号,可能会出现这个这是因为 163 邮箱为防止 SMTP 外泄和滥用,默认没有开启客户端 SMTP 功能。开通 SMTP 需要先进入【设置】页面,在侧边找到【POP3/SMTP/IMAP】这一项,把“开启SMTP邮件”这一项勾选上(注意这里需要手机验证)即可正常使用。

2、错误提示之二

SMTPAuthenticationError: (454, ‘Authentication failed, please open smtp flag first!’)
SMTPAuthenticationError: (535, ‘Error: authentication failed’)

【解决办法】

如果你的 QQ 邮箱出现该错误,请先进入该邮箱的网页版,进入邮箱的【设置】页面,找到“POP3/IMAP/SMTP/Exchange/CardDAV/CalDAV服务”这一项,把其中的“POP3/SMTP服务”开启即可正常使用。

如果你使用的是 163 邮箱,请登陆网页版邮箱,进入【设置】页面,在侧边找到【POP3/SMTP/IMAP】这一项,把“开启SMTP邮件”这一项勾选上(注意这里可能需要手机验证)。

3、错误提示之三

SMTPServerDisconnected: Connection unexpectedly closed

解决办法:

这是因为 QQ 邮箱自身原因,请转用其他如 163 邮箱。

4、错误提示之四

reply: ‘535 Error: authentication failed\r\n’
reply: retcode (535); Msg: Error: authentication failed

【解决办法】

请检查下邮箱设置中“客户端授权密码”有没有被开启?如果此功能已开启,则需要使用授权密码而不是邮箱登录密码。

5、错误提示之五

554 DT:SPM

【解决办法】

此错误常出现在 163 邮箱,官方说明为:554 DT:SPM 发送的邮件内容包含了未被许可的信息,或被系统识别为垃圾邮件。请检查是否有用户发送病毒或者垃圾邮件。可能由于大量发送邮件导致的,如果遇到此错误请更换其他邮箱。

6、错误提示之六

500 Error: bad syntax\r\n

【解决办法】

Windows 下可能会出现此错误,这可能是因为网络属性中的“连接特定的 DNS 后缀”值带有空格导致的。在“控制版面”中打开“网络和共享中心”,点击现在使用的网络连接,然后点击【详细信息】查看“连接特定的 DNS 后缀”的值,看是否带有空格,如果有则需要修改一下。具体步骤为:点击【属性】按钮,双击“Internet 协议版本 4(TCP/IPv4)”这一项,再点击【高级】按钮,切换到“DNS”标签,把“此连接的 DNS 后缀”清空或修改为 HOST,依次确认保存。至此问题可得到解决。via

更详细的操作步骤参见《解决 Calibre 推送“500 Error: bad syntax”错误》这篇文章。

7、错误提示之七

error: [Errno 10060]

【解决办法】

错误提示无法建立连接。检查一下你的电脑是否使用了网络代理,或者有防火墙、病毒软件之类的阻止了 SMTP 的连接。

8、错误提示之八

SMTPSenderRefused: (553, ‘Mail from must equal authorized user’, u’1584624613@qq.com’)

【解决办法】

SMTP 服务器拒绝的原因是发信邮箱和发信人名称不一致。假设你使用的是 163 邮箱,如果你的发信邮箱是 example@163.com,那么发信人名称也应该是 example@163.com,而不是 example,更不能是其它邮箱地址。简单说就是直接用你的 Email 做用户名就可以了。

9、错误提示之九

File “ssl.py”, line 828, in do_handshake
error: [Errno 10054]

或者

File “socket.py”, line 575, in create_connection
error: [Errno 10060]

【解决办法】

错误提示无法建立连接。由于每个人的电脑环境不同,出现此问题的原因可能也不尽相同,建议检查一下你的电脑是否使用了网络代理,或者有防火墙、病毒软件之类的阻止了 SMTP 的连接。

有帮助,[ 捐助本站 ] 或分享给小伙伴:

发表评论

标注为 * 的是必填项。您填写的邮箱地址将会被保密。如果是在本站首次留言,审核后才能显示。
若提问,请务必描述清楚该问题的前因后果,提供尽可能多的对分析该问题有帮助的线索。

小伙伴们发表了 566 条评论

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

    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’: }

  2. 你好,我的测试邮件是发送成功了,但用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’: }

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

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

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

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

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

    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’)

  6. 你好我按照教程一步步走下来后面就不知道怎么弄了~能教我一下么?谢谢~
    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 做用户名就可以了。

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

    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 自身的原因。

  8. 这是测试的时候的:

    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)

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

    转换书籍 第 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,这应该是源文件损坏的原因。建议多测试几个不同的文件,看是否是个例,如果是的话那应该就可以确定是源文件的问题了。

  10. 请问为什么换了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)

  11. 您好,打扰了,我因为换电脑,重装了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

  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 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 时填写的密码是授权码吗?