SMTP configuration with SSL encryption

It's surprising that PLONE 5 does not allow us to configure SMTP with the SSL encryption option using the port 465.

Any solution to get around that issue?


Set TLS at http://localhost:8080/Plone/MailHost/manage_main

The underlaying zope.sendmail implementation uses TLS automatically is starttls is provided by the SMTP server...means using port 465 should be basically doing the job.

Thanks for your prompt reply.

Actually, I've already found that PLONE interface. The problem is that I'm unsure about TLS. So far, I can't send any test email from the PLONE mail configuration panel:

When using successfully smtplib, I have:

import smtplib

smtp =
port = 465
sender =
senderPassword =

recipient =
message = 'Message'

from email.message import EmailMessage

msg = EmailMessage()
msg['Subject'] = 'Test'
msg['From'] = sender
msg['To'] = recipient

server = smtplib.SMTP_SSL(smtp,port)


My question is: how to do the same with PLONE?


Did you try to configure port 465 in Plone???

Yep. Through the mail configuration panel.

When looking into PLONE-5 directories, I found that:


It is apparent that PLONE does not propose an SSL connection, since that file starts with

from threading import local
from ssl import SSLError
from smtplib import SMTP

There is no "from smtplib import SMTP_SSL"

Plone Foundation Code of Conduct