1

How to send email from Zimbra in Python. This is an example for gmail, is there any example for Zimbra?

Here is info:

Zimbra server : 10.0.0.8

for login email: https:\\10.0.0.8

my test mail: test_maas@b2mportal.gemlikgis.com

suleymanduzgun
  • 365
  • 8
  • 17

1 Answers1

3

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!

Yvan Watchman
  • 284
  • 3
  • 13