forked from public/pyceo
Merge branch 'v1' of https://git.csclub.uwaterloo.ca/public/pyceo into v1
This commit is contained in:
commit
da14764687
|
@ -44,9 +44,9 @@ class MailService:
|
|||
client = smtplib.SMTP_SSL(self.host, self.port)
|
||||
else:
|
||||
client = smtplib.SMTP(self.host, self.port)
|
||||
client.ehlo()
|
||||
if self.starttls:
|
||||
client.starttls()
|
||||
client.ehlo()
|
||||
client.send_message(msg)
|
||||
client.quit()
|
||||
|
||||
|
|
Loading…
Reference in New Issue