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 的连接。

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

发表评论

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

小伙伴们发表了 450 条评论

  1. 换了163邮箱,未使用网络代理,也试过关闭防火墙,但仍出现以下问题:
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\wizard\send_email.py”, line 207, in test_email_settings
    File “site-packages\calibre\utils\smtp.py”, line 148, in sendmail
    File “site-packages\calibre\utils\smtplib.py”, line 336, in connect
    File “site-packages\calibre\utils\smtplib.py”, line 833, in _get_socket
    File “socket.py”, line 557, in create_connection
    gaierror: [Errno 11001] getaddrinfo failed

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

  2. 不知道该如何解决,谢谢!
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\wizard\send_email.py”, line 207, in test_email_settings
    File “site-packages\calibre\utils\smtp.py”, line 162, in sendmail
    File “site-packages\calibre\utils\smtplib.py”, line 780, in sendmail
    SMTPDataError: (554, ‘DT:SPM 126 smtp4,jdKowAAHt5TpBfxbvLfUAA–.8S2 1543243244,please see http://mail.163.com/help/help_spam_16.htm?ip=123.139.40.189&hostid=smtp4&time=1543243244′)

    Log:
    connect: (u’smtp.126.com’, 465)
    connect: (u’smtp.126.com’, 465)
    reply: ‘220 126.com Anti-spam GT for Coremail System (126com[20140526])\r\n’
    reply: retcode (220); Msg: 126.com Anti-spam GT for Coremail System (126com[20140526])
    connect: 126.com Anti-spam GT for Coremail System (126com[20140526])
    send: ‘ehlo [172.16.207.236]\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 1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2UrRCBOyUCa0xDrUUUUj\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 1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2UrRCBOyUCa0xDrUUUUj
    STARTTLS
    8BITMIME
    send: ‘AUTH PLAIN AHpiODUxMTIyAFpiODUxMTIy\r\n’
    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=”===============0394782860==”\r\nMIME-Version: 1.0\r\nSubject: Test mail from calibre\r\nTo: 8615929969550_bd9fe6@kindle.cn\r\nFrom: zb851122@126.com\r\nDate: Mon, 26 Nov 2018 22:41:02 +0800\r\nMessage-Id: \r\n\r\nYou will not see this in a MIME-aware mail reader.\r\n\r\n–===============0394782860==\r\nContent-Type: text/plain; charset=”us-ascii”\r\nMIME-Version: 1.0\r\nContent-Transfer-Encoding: 7bit\r\n\r\nTest mail from calibre\r\n–===============0394782860==–\r\n.\r\n’
    reply: ‘554 DT:SPM 126 smtp4,jdKowAAHt5TpBfxbvLfUAA–.8S2 1543243244,please see http://mail.163.com/help/help_spam_16.htm?ip=123.139.40.189&hostid=smtp4&time=1543243244\r\n’
    reply: retcode (554); Msg: DT:SPM 126 smtp4,jdKowAAHt5TpBfxbvLfUAA–.8S2 1543243244,please see http://mail.163.com/help/help_spam_16.htm?ip=123.139.40.189&hostid=smtp4&time=1543243244
    data: (554, ‘DT:SPM 126 smtp4,jdKowAAHt5TpBfxbvLfUAA–.8S2 1543243244,please see http://mail.163.com/help/help_spam_16.htm?ip=123.139.40.189&hostid=smtp4&time=1543243244’)
    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

  3. 请问,测试邮件时没问题,但是邮件发书时进度一直是不可用,是哪里出错了?
    Starting job: 把 【精品汇-331】施展·中国史纲50讲(完整版) 发Email到 2393635310@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: ‘ehlo [192.168.18.105]\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 1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2UF1FUF4UCa0xDrUUUUj\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 1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2UF1FUF4UCa0xDrUUUUj
    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=”===============1538723088==”\r\nMIME-Version: 1.0\r\nSubje…

      • 看到你说的没问题,我又特意等久了点,最后终于成功了。估计是网络慢而且文件有点大,就推送时间长了。太感谢了!

  4. 求助,163邮箱,密码填写的是授权码,smtp已开启,系统无代理

    Traceback (most recent call last):
    File “site-packages\calibre\gui2\wizard\send_email.py”, line 207, in test_email_settings
    File “site-packages\calibre\utils\smtp.py”, line 148, in sendmail
    File “site-packages\calibre\utils\smtplib.py”, line 336, in connect
    File “site-packages\calibre\utils\smtplib.py”, line 833, in _get_socket
    File “socket.py”, line 575, in create_connection
    error: [Errno 10061]

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

  5. outlook邮箱,这是什么问题呢?

    Traceback (most recent call last):
    File “site-packages/calibre/gui2/wizard/send_email.py”, line 207, in test_email_settings
    File “site-packages/calibre/utils/smtp.py”, line 159, in sendmail
    File “site-packages/calibre/utils/smtplib.py”, line 648, in login
    SMTPAuthenticationError: (535, ‘5.7.3 Authentication unsuccessful [BL0PR02CA0102.namprd02.prod.outlook.com]’)

    Log:
    connect: (u’smtp-mail.outlook.com’, 587)
    connect: (u’smtp-mail.outlook.com’, 587)
    reply: ‘220 BL0PR02CA0102.outlook.office365.com Microsoft ESMTP MAIL Service ready at Fri, 12 Oct 2018 02:15:26 +0000\r\n’
    reply: retcode (220); Msg: BL0PR02CA0102.outlook.office365.com Microsoft ESMTP MAIL Service ready at Fri, 12 Oct 2018 02:15:26 +0000
    connect: BL0PR02CA0102.outlook.office365.com Microsoft ESMTP MAIL Service ready at Fri, 12 Oct 2018 02:15:26 +0000
    send: ‘ehlo Anqis-MacBook-Pro.local\r\n’
    reply: ‘250-BL0PR02CA0102.outlook.office365.com Hello [184.191.65.54]\r\n’
    reply: ‘250-SIZE 157286400\r\n’
    reply: ‘250-PIPELINING\r\n’
    reply: ‘250-DSN\r\n’
    reply: ‘250-ENHANCEDSTATUSCODES\r\n’
    reply: ‘250-STARTTLS\r\n’
    reply: ‘250-8BITMIME\r\n’
    reply: ‘250-BINARYMIME\r\n’
    reply: ‘250-CHUNKING\r\n’
    reply: ‘250 SMTPUTF8\r\n’
    reply: retcode (250); Msg: BL0PR02CA0102.outlook.office365.com Hello [184.191.65.54]
    SIZE 157286400
    PIPELINING
    DSN
    ENHANCEDSTATUSCODES
    STARTTLS
    8BITMIME
    BINARYMIME
    CHUNKING
    SMTPUTF8
    send: ‘STARTTLS\r\n’
    reply: ‘220 2.0.0 SMTP server ready\r\n’
    reply: retcode (220); Msg: 2.0.0 SMTP server ready
    send: ‘ehlo Anqis-MacBook-Pro.local\r\n’
    reply: ‘250-BL0PR02CA0102.outlook.office365.com Hello [184.191.65.54]\r\n’
    reply: ‘250-SIZE 157286400\r\n’
    reply: ‘250-PIPELINING\r\n’
    reply: ‘250-DSN\r\n’
    reply: ‘250-ENHANCEDSTATUSCODES\r\n’
    reply: ‘250-AUTH LOGIN XOAUTH2\r\n’
    reply: ‘250-8BITMIME\r\n’
    reply: ‘250-BINARYMIME\r\n’
    reply: ‘250-CHUNKING\r\n’
    reply: ‘250 SMTPUTF8\r\n’
    reply: retcode (250); Msg: BL0PR02CA0102.outlook.office365.com Hello [184.191.65.54]
    SIZE 157286400
    PIPELINING
    DSN
    ENHANCEDSTATUSCODES
    AUTH LOGIN XOAUTH2
    8BITMIME
    BINARYMIME
    CHUNKING
    SMTPUTF8
    send: ‘AUTH LOGIN c210cC1tYWlsLm91dGxvb2suY29t\r\n’
    reply: ‘334 UGFzc3dvcmQ6\r\n’
    reply: retcode (334); Msg: UGFzc3dvcmQ6
    send: ‘bGlseWxpYW5nMDgyMg==\r\n’
    reply: ‘535 5.7.3 Authentication unsuccessful [BL0PR02CA0102.namprd02.prod.outlook.com]\r\n’
    reply: retcode (535); Msg: 5.7.3 Authentication unsuccessful [BL0PR02CA0102.namprd02.prod.outlook.com]

  6. 求助,用的是163邮箱,密码也是刚才就设置好的授权码,可是还是有错误,错误如下:
    Traceback (most recent call last):
    File “site-packages/calibre/gui2/wizard/send_email.py”, line 207, in test_email_settings
    File “site-packages/calibre/utils/smtp.py”, line 161, in sendmail
    File “site-packages/calibre/utils/smtplib.py”, line 764, in sendmail
    File “site-packages/calibre/utils/smtplib.py”, line 494, in rset
    File “site-packages/calibre/utils/smtplib.py”, line 419, in docmd
    File “site-packages/calibre/utils/smtplib.py”, line 393, in getreply
    SMTPServerDisconnected: Connection unexpectedly closed

    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: ‘ehlo silvercrowsdeMacBook-Pro.local\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 1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2UrxhcuxUCa0xDrUUUUj\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 1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2UrxhcuxUCa0xDrUUUUj
    STARTTLS
    8BITMIME
    send: ‘AUTH PLAIN AGh1NDU1MzEyOTg5QDE2My5jb20AeGpidDE5OTgxMjIwMDEyMw==\r\n’
    reply: ‘235 Authentication successful\r\n’
    reply: retcode (235); Msg: Authentication successful
    send: u’mail FROM:\r\n’
    reply: ‘554 MI:SPB UserReject 0,smtp9,DcCowAC3HndRQVhbbiAXDw–.17100S2 1532510546,please feedback at http://feedback.mail.126.com/antispam/complain.php?user=hu455312989@163.com\r\n’
    reply: retcode (554); Msg: MI:SPB UserReject 0,smtp9,DcCowAC3HndRQVhbbiAXDw–.17100S2 1532510546,please feedback at http://feedback.mail.126.com/antispam/complain.php?user=hu455312989@163.com
    send: ‘rset\r\n’
    send: ‘quit\r\n’

  7. 出现如下错误,请问如何解决
    Starting job: Email 天空的另一半(《华盛顿邮报》 年度十佳书籍!《纽约时报》畅销榜第1名!累计销量逾500万!普利策新闻奖得主震撼人心代表作。) (大鱼读品系列) to 95560036@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 44, in run
    File “site-packages\calibre\gui2\email.py”, line 134, in sendmail
    File “site-packages\calibre\utils\smtp.py”, line 147, in sendmail
    File “site-packages\calibre\utils\smtplib.py”, line 336, in connect
    File “site-packages\calibre\utils\smtplib.py”, line 834, in _get_socket
    File “ssl.py”, line 933, in wrap_socket
    File “ssl.py”, line 601, in __init__
    File “ssl.py”, line 830, in do_handshake
    error: [Errno 10054]

  8. 我的这个乱码是“SMTPDataError”怎么办呢?

    Traceback (most recent call last):
    File “site-packages\calibre\gui2\wizard\send_email.py”, line 207, in test_email_settings
    File “site-packages\calibre\utils\smtp.py”, line 161, in sendmail
    File “site-packages\calibre\utils\smtplib.py”, line 780, in sendmail
    SMTPDataError: (554, ‘DT:SPM 163 smtp14,EsCowADnTt8tbkFbONTzJw–.20513S2 1531014701,please see http://mail.163.com/help/help_spam_16.htm?ip=202.100.214.103&hostid=smtp14&time=1531014701′)

    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: ‘ehlo [192.168.137.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 1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2UrMuGtdUCa0xDrUUUUj\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 1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2UrMuGtdUCa0xDrUUUUj
    STARTTLS
    8BITMIME
    send: ‘AUTH PLAIN ADE4MjI2Njg2MDM4AEpVTkxJTkdUSUFOWElB\r\n’
    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=”===============1314629356==”\r\nMIME-Version: 1.0\r\nSubject: Test mail from calibre\r\nTo: 8618226686038_75c59d@kindle.cn\r\nFrom: 18226686038@163.com\r\nDate: Sun, 08 Jul 2018 09:51:41 +0800\r\nMessage-Id: \r\n\r\nYou will not see this in a MIME-aware mail reader.\r\n\r\n–===============1314629356==\r\nContent-Type: text/plain; charset=”us-ascii”\r\nMIME-Version: 1.0\r\nContent-Transfer-Encoding: 7bit\r\n\r\nTest mail from calibre\r\n–===============1314629356==–\r\n.\r\n’
    reply: ‘554 DT:SPM 163 smtp14,EsCowADnTt8tbkFbONTzJw–.20513S2 1531014701,please see http://mail.163.com/help/help_spam_16.htm?ip=202.100.214.103&hostid=smtp14&time=1531014701\r\n’
    reply: retcode (554); Msg: DT:SPM 163 smtp14,EsCowADnTt8tbkFbONTzJw–.20513S2 1531014701,please see http://mail.163.com/help/help_spam_16.htm?ip=202.100.214.103&hostid=smtp14&time=1531014701
    data: (554, ‘DT:SPM 163 smtp14,EsCowADnTt8tbkFbONTzJw–.20513S2 1531014701,please see http://mail.163.com/help/help_spam_16.htm?ip=202.100.214.103&hostid=smtp14&time=1531014701’)
    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

    • 错误提示中的网址给出了解释:554 DT:SPM 发送的邮件内容包含了未被许可的信息,或被系统识别为垃圾邮件。请检查是否有用户发送病毒或者垃圾邮件。

          • 我之前也是这个问题,发测试邮件怎么发都不好使。但是直接发书,几秒就过去了,发书正常不受影响,今天刚搞完的。

  9. 楼主你好,我用gmail(端口465,SSL加密),可以成功发送测试邮件,Gmail邮箱能收到amazon的反馈邮件;但是推书时显示推送失败。你有碰到类似的情况吗?

    • 推送失败会有提示,需要根据提示判断问题出在哪里。点击 Calibre 右下角的“任务”打开任务列表,双击失败的那一条可以看到详细提示信息。

      • 谢谢回复。
        任务里发送那一步的进度条持续显示“不可用”,几分钟后“发送失败”;
        详细信息:
        Starting job: 把 A Canticle for Leibowitz 发Email到 ***@kindle.com
        connect: (u’smtp.gmail.com’, 465)
        connect: (u’smtp.gmail.com’, 465)

        Sending failed…

        Traceback (most recent call last):
        File “site-packages\calibre\gui2\email.py”, line 44, in run
        File “site-packages\calibre\gui2\email.py”, line 134, in sendmail
        File “site-packages\calibre\utils\smtp.py”, line 147, in sendmail
        File “site-packages\calibre\utils\smtplib.py”, line 334, in connect
        File “site-packages\calibre\utils\smtplib.py”, line 829, in _get_socket
        File “socket.py”, line 575, in create_connection
        error: [Errno 10060]

        Retrying in 301 seconds…

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

        Sending failed…

        Traceback (most recent call last):
        File “site-packages\calibre\gui2\email.py”, line 44, in run
        File “site-packages\calibre\gui2\email.py”, line 134, in sendmail
        File “site-packages\calibre\utils\smtp.py”, line 147, in sendmail
        File “site-packages\calibre\utils\smtplib.py”, line 334, in connect
        File “site-packages\calibre\utils\smtplib.py”, line 829, in _get_socket
        File “socket.py”, line 575, in create_connection
        error: [Errno 10060]

        Job: “把 A Canticle for Leibowitz 发Email到 ***@kindle.com” failed with error:
        Traceback (most recent call last):
        File “site-packages\calibre\gui2\threaded_jobs.py”, line 84, in start_work
        File “site-packages\calibre\gui2\email.py”, line 101, in __call__
        error: [Errno 10060]

        Called with args: (u’C:\\Users\\Echo\\AppData\\Local\\Temp\\calibre_8kmwsk\\nlttuqcaltmpfmt.mobi’, u’A Canticle for Leibowitz – Walter M. Miller Jr_.mobi’, u’ ***@kindle.com’, u’\u7535\u5b50\u4e66\uff1a A Canticle for Leibowitz’, u’\u5df2\u6dfb\u52a0, \u60a8\u53ef\u4ee5\u4ece\u4e2d\u83b7\u53d6\u7535\u5b50\u4e66\n\nA Canticle for Leibowitz\n\t\u7531 Walter M. Miller Jr.\n\n\u4f7f\u7528 MOBI \u683c\u5f0f.\n\n\u5173\u4e8e\u672c\u4e66\uff1a\n\nWalter M. Miller\’s acclaimed SF classic *A Canticle for Leibowitz*\nopens with the accidental excavation of a holy artifact: a creased,\nbrittle memo scrawled by the hand of the blessed Saint Leibowitz, that\nreads: “Pound pastrami, can kraut, six bagels–bring home for Emma.”\nTo the Brothers of Saint Leibowitz, this sacred shopping list penned\nby an obscure, 20th-century engineer is a symbol of hope from the\ndistant past, from before the Simplification, the fiery atomic\nholocaust that plunged the earth into darkness and ignorance. As\n*1984* cautioned against Stalinism, so 1959\’s *A Canticle for\nLeibowitz* warns of the threat and implications of nuclear\nannihilation. Following a cloister of monks in their Utah abbey over\nsome six or seven hundred years, the funny but bleak *Canticle*\ntackles the sociological and religious implications of the cyclical\nrise and fall of civilization, questioning whether humanity can hope\nfor more than repeating its own history.’) {u’log’: , u’notifications’: , u’abort’: }

      • calibre, version 3.26.1 (win32, embedded-python: True)
        无法通过电子邮件发送书籍: 失败: 把 A Canticle for Leibowitz 发Email到 ***@kindle.com

        Starting job: 把 A Canticle for Leibowitz 发Email到 ***@kindle.com
        connect: (u’smtp.gmail.com’, 465)
        connect: (u’smtp.gmail.com’, 465)

        Sending failed…

        Traceback (most recent call last):
        File “site-packages\calibre\gui2\email.py”, line 44, in run
        File “site-packages\calibre\gui2\email.py”, line 134, in sendmail
        File “site-packages\calibre\utils\smtp.py”, line 147, in sendmail
        File “site-packages\calibre\utils\smtplib.py”, line 334, in connect
        File “site-packages\calibre\utils\smtplib.py”, line 829, in _get_socket
        File “socket.py”, line 575, in create_connection
        error: [Errno 10060]

        Retrying in 301 seconds…

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

        Sending failed…

        Traceback (most recent call last):
        File “site-packages\calibre\gui2\email.py”, line 44, in run
        File “site-packages\calibre\gui2\email.py”, line 134, in sendmail
        File “site-packages\calibre\utils\smtp.py”, line 147, in sendmail
        File “site-packages\calibre\utils\smtplib.py”, line 334, in connect
        File “site-packages\calibre\utils\smtplib.py”, line 829, in _get_socket
        File “socket.py”, line 575, in create_connection
        error: [Errno 10060]

        Job: “把 A Canticle for Leibowitz 发Email到 ***@kindle.com” failed with error:
        Traceback (most recent call last):
        File “site-packages\calibre\gui2\threaded_jobs.py”, line 84, in start_work
        File “site-packages\calibre\gui2\email.py”, line 101, in __call__
        error: [Errno 10060]

        Called with args: (u’C:\\Users\\Echo\\AppData\\Local\\Temp\\calibre_8kmwsk\\nlttuqcaltmpfmt.mobi’, u’A Canticle for Leibowitz – Walter M. Miller Jr_.mobi’, u’mmchmuyuan@kindle.com’, u’\u7535\u5b50\u4e66\uff1a A Canticle for Leibowitz’, u’\u5df2\u6dfb\u52a0, \u60a8\u53ef\u4ee5\u4ece\u4e2d\u83b7\u53d6\u7535\u5b50\u4e66\n\nA Canticle for Leibowitz\n\t\u7531 Walter M. Miller Jr.\n\n\u4f7f\u7528 MOBI \u683c\u5f0f.\n\n\u5173\u4e8e\u672c\u4e66\uff1a\n\nWalter M. Miller\’s acclaimed SF classic *A Canticle for Leibowitz*\nopens with the accidental excavation of a holy artifact: a creased,\nbrittle memo scrawled by the hand of the blessed Saint Leibowitz, that\nreads: “Pound pastrami, can kraut, six bagels–bring home for Emma.”\nTo the Brothers of Saint Leibowitz, this sacred shopping list penned\nby an obscure, 20th-century engineer is a symbol of hope from the\ndistant past, from before the Simplification, the fiery atomic\nholocaust that plunged the earth into darkness and ignorance. As\n*1984* cautioned against Stalinism, so 1959\’s *A Canticle for\nLeibowitz* warns of the threat and implications of nuclear\nannihilation. Following a cloister of monks in their Utah abbey over\nsome six or seven hundred years, the funny but bleak *Canticle*\ntackles the sociological and religious implications of the cyclical\nrise and fall of civilization, questioning whether humanity can hope\nfor more than repeating its own history.’) {u’log’: , u’notifications’: , u’abort’: }

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

  10. 为什么邮件测试不通过,请问可以怎么解决呢?
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\wizard\send_email.py”, line 207, in test_email_settings
    File “site-packages\calibre\utils\smtp.py”, line 154, in sendmail
    File “site-packages\calibre\utils\smtplib.py”, line 647, in login
    SMTPAuthenticationError: (550, ‘User has no permission’)

    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: ‘ehlo [131.131.7.54]\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 1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2UFZx3cLUCa0xDrUUUUj\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 1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2UFZx3cLUCa0xDrUUUUj
    STARTTLS
    8BITMIME
    send: ‘AUTH PLAIN AGFnbmVzYjIwMTRAMTYzLmNvbQBEYW9oYW93dWNoaQ==\r\n’
    reply: ‘550 User has no permission\r\n’
    reply: retcode (550); Msg: User has no permission

    • 密码使用的是“授权码”吗?如果不是的话,需要进入 163 邮箱设置中的“客户端授权密码”开启“设置客户端授权码”,然后把你设置的授权码作为 SMTP 密码使用。

  11. 求助
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\email.py”, line 44, in run
    File “site-packages\calibre\gui2\email.py”, line 134, in sendmail
    File “site-packages\calibre\utils\smtp.py”, line 147, in sendmail
    File “site-packages\calibre\utils\smtplib.py”, line 334, in connect
    File “site-packages\calibre\utils\smtplib.py”, line 829, in _get_socket
    File “socket.py”, line 575, in create_connection
    error: [Errno 10061]

    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’, 578)
    connect: (u’smtp.163.com’, 578)

    Sending failed…

    Traceback (most recent call last):
    File “site-packages\calibre\gui2\email.py”, line 44, in run
    File “site-packages\calibre\gui2\email.py”, line 134, in sendmail
    File “site-packages\calibre\utils\smtp.py”, line 147, in sendmail
    File “site-packages\calibre\utils\smtplib.py”, line 334, in connect
    File “site-packages\calibre\utils\smtplib.py”, line 829, in _get_socket
    File “socket.py”, line 575, in create_connection
    error: [Errno 10061]

    Job: “把 苏菲的世界 发Email到 zzzdtian@kindle.cn” failed with error:
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\threaded_jobs.py”, line 84, in start_work
    File “site-packages\calibre\gui2\email.py”, line 101, in __call__
    error: [Errno 10061]

    Called with args: (u’C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\calibre_pi49b4\\9njewzcaltmpfmt.mobi’, u’Su Fei De Shi Jie – (Nuo Wei )Qiao Si Tan _Jia De.mobi’, u’zzzdtian@kindle.cn’, u’\u7535\u5b50\u4e66\uff1a \u82cf\u83f2\u7684\u4e16\u754c’, u’\u5df2\u6dfb\u52a0, \u60a8\u53ef\u4ee5\u4ece\u4e2d\u83b7\u53d6\u7535\u5b50\u4e66\n\n\u82cf\u83f2\u7684\u4e16\u754c\n\t\u7531 \uff08\u632a\u5a01\uff09\u4e54\u65af\u5766\xb7\u8d3e\u5fb7\n\n\u4f7f\u7528 MOBI \u683c\u5f0f.’) {u’log’: , u’abort’: , u’notifications’: }

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

  12. 求助,测试推送的时候出现了这个
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\wizard\send_email.py”, line 207, in test_email_settings
    File “site-packages\calibre\utils\smtp.py”, line 154, in sendmail
    File “site-packages\calibre\utils\smtplib.py”, line 647, in login
    SMTPAuthenticationError: (535, ‘Error: \xc7\xeb\xca\xb9\xd3\xc3\xca\xda\xc8\xa8\xc2\xeb\xb5\xc7\xc2\xbc\xa1\xa3\xcf\xea\xc7\xe9\xc7\xeb\xbf\xb4: http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=28&&no=1001256′)

    Log:
    connect: (u’smtp.qq.com’, 465)
    connect: (u’smtp.qq.com’, 465)
    reply: ‘220 smtp.qq.com Esmtp QQ Mail Server\r\n’
    reply: retcode (220); Msg: smtp.qq.com Esmtp QQ Mail Server
    connect: smtp.qq.com Esmtp QQ Mail Server
    send: ‘ehlo LAPTOP-A88OJ8NP.lan\r\n’
    reply: ‘250-smtp.qq.com\r\n’
    reply: ‘250-PIPELINING\r\n’
    reply: ‘250-SIZE 73400320\r\n’
    reply: ‘250-AUTH LOGIN PLAIN\r\n’
    reply: ‘250-AUTH=LOGIN\r\n’
    reply: ‘250-MAILCOMPRESS\r\n’
    reply: ‘250 8BITMIME\r\n’
    reply: retcode (250); Msg: smtp.qq.com
    PIPELINING
    SIZE 73400320
    AUTH LOGIN PLAIN
    AUTH=LOGIN
    MAILCOMPRESS
    8BITMIME
    send: ‘AUTH PLAIN ADM2MjE0NDU3OEBxcS5jb20Aem5ueWhoYXpqMTMxNA==\r\n’
    reply: ‘535 Error: \xc7\xeb\xca\xb9\xd3\xc3\xca\xda\xc8\xa8\xc2\xeb\xb5\xc7\xc2\xbc\xa1\xa3\xcf\xea\xc7\xe9\xc7\xeb\xbf\xb4: http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=28&&no=1001256\r\n’
    reply: retcode (535); Msg: Error: ��ʹ����Ȩ����¼�������뿴: http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=28&&no=1001256

    • 因为你的 QQ 邮箱开启了“授权码”,所以在使用 SMTP 的时候,你需要使用你设置的“授权码”而不是邮箱“登录密码”。错误提示中的链接给出了详细的解释和设置步骤。