Skip to content
Snippets Groups Projects
Commit ff5a7246 authored by ale's avatar ale
Browse files

Use SMTP_HELO_HOST for the initial HELO on SMTP conns

parent 860953de
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,8 @@ class Connection:
self.__conn = None
def __connect(self):
self.__conn = smtplib.SMTP()
self.__conn = smtplib.SMTP(
local_hostname=mm_cfg.SMTP_HELO_HOST)
self.__conn.set_debuglevel(mm_cfg.SMTPLIB_DEBUG_LEVEL)
self.__conn.connect(mm_cfg.SMTPHOST, mm_cfg.SMTPPORT)
if mm_cfg.SMTP_AUTH:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment