简体   繁体   English

用 Python 从 Zimbra 发送电子邮件

[英]Send email from Zimbra in Python

How to send email from Zimbra in Python.如何在 Python 中从 Zimbra 发送电子邮件。 This is an example for gmail, is there any example for Zimbra?是gmail的一个例子,有Zimbra的例子吗?

Here is info:这是信息:

Zimbra server : 10.0.0.8 Zimbra 服务器: 10.0.0.8

for login email: https:\\\\10.0.0.8登录邮箱: https:\\\\10.0.0.8

my test mail: test_maas@b2mportal.gemlikgis.com我的测试邮箱: test_maas@b2mportal.gemlikgis.com

Try using:尝试使用:

import smtplib

 

server = smtplib.SMTP('10.0.0.8', 25)

server.starttls()

server.login("mail@example.com", "IAmAStrongPassword")

 

msg = "Help me with my math, please!"

server.sendmail("superteacher@math.com", "THE EMAIL ADDRESS TO SEND TO", msg)

server.quit()

Hopefully it will work out for you!希望它对你有用!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM