smtplib

smtplib

文章 0 浏览 2

Python 3 smtplib 使用unicode字符发送

我在 Python 3 中使用 smtplib 发送电子邮件 unicode 字符时遇到问题。这在 3.1.1 中失败,但在 2.5.4 中有效: import smtplib from email.mime.text…

小梨窩很甜 2024-08-04 15:46:23 2 0

python smtp gmail身份验证错误(通过gmail smtp服务器发送电子邮件)

我有以下代码, import smtplib from email.mime.text import MIMEText smtpserver = 'smtp.gmail.com' AUTHREQUIRED = 1 # if you need to use SMTP …

萌能量女王 2024-08-04 04:01:47 1 0

如何在python 2.4中设置smtplib发送超时?

当电子邮件发送失败时,我遇到 smtplib 占用程序的问题,因为永远不会引发超时。我使用的服务器没有也永远不会有大于 2.4 的 python,因此我无法在更…

爱冒险 2024-08-02 16:27:51 4 0

smtplib 和 gmail - python 脚本问题

这是我的脚本: #!/usr/bin/python import smtplib msg = 'Hello world.' server = smtplib.SMTP('smtp.gmail.com',587) #port 465 or 587 server.ehl…

酒与心事 2024-07-18 20:12:08 3 0

如何在 python ssmtp 与 smtplib 中发送邮件

我需要在 delbian linux 中发送电子邮件。 如何发送? 我在 256 MB linux 机器上运行我的服务器,我听说 postfix 和 sendmail 太过分了。 最近我遇到…

吃素的狼 2024-07-17 12:29:59 5 0

使用 Python 示例发送电子邮件失败

我一直在尝试(但失败了)弄清楚如何通过 Python 发送电子邮件。 尝试这里的示例: http://docs.python.org/library/smtplib.html#smtplib.SMTP 但在…

╄→承喏 2024-07-11 03:15:06 5 0

excepts.AttributeError : SMTP 实例没有属性“登录”; : <006BB1D0 处的回溯对象>

嘿,我有一个运行 python CGI 脚本的 Windows 服务器,但我在使用 smtplib 时遇到了一些问题。 服务器正在运行 python 2.1(不幸的是,我无法升级它)…

远山浅 2024-07-07 14:14:14 7 0
更多

推荐作者

不再见

文章 0 评论 0

真是无聊啊

文章 0 评论 0

樱娆

文章 0 评论 0

浅语花开

文章 0 评论 0

烛光

文章 0 评论 0

绻影浮沉

文章 0 评论 0

更多

友情链接

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文