Ticket #3560: announcerplugin-actually-enable-tls.diff
| File announcerplugin-actually-enable-tls.diff, 0.6 kB (added by leorochael, 5 months ago) |
|---|
-
./distributors/email_distributor.py
old new 281 281 def _transmit(self, smtpfrom, addresses, message): 282 282 smtp = smtplib.SMTP() 283 283 smtp.connect(self.smtp_server) 284 if self.use_tls: 285 smtp.ehlo() 286 smtp.starttls() 284 287 if self.smtp_user: 285 288 smtp.login(self.smtp_user, self.smtp_password) 286 289 smtp.sendmail(smtpfrom, addresses, message)
