Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将如何 DKIM 签署我使用构建email.mime.text.MIMEText并正在发送的电子邮件smtplib?
email.mime.text.MIMEText
smtplib
你没有。添加此签名是邮件服务器的工作。
我认为你可以使用:
import skim sign = dkim.sign(msg.as_string(),'key', 'domain.com', private_key)
(但不工作,我不知道为什么)