Skip to content

Commit 396509e

Browse files
authored
SMTP_SSL requires host=None when connecting later. (#104)
Co-authored-by: Mars Landis <[email protected]> Bypassing signing protection; signing will occur with version bump commit.
1 parent f6763b2 commit 396509e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

marrow/mailer/transport/smtp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def shutdown(self):
6868

6969
def connect_to_server(self):
7070
if self.tls == 'ssl': # pragma: no cover
71-
connection = SMTP_SSL(local_hostname=self.local_hostname, keyfile=self.keyfile,
71+
connection = SMTP_SSL(host=None, local_hostname=self.local_hostname, keyfile=self.keyfile,
7272
certfile=self.certfile, timeout=self.timeout)
7373
else:
7474
connection = SMTP(local_hostname=self.local_hostname, timeout=self.timeout)

0 commit comments

Comments
 (0)