give up on email for now, still can't get SMTP to work

Gmail SMTP is unhappy with auth, even though I got it to work on https://shell-py3.appspot.com/ , and Gandi SMTP seems to block Google Cloud IPs. sigh.
pull/977/head
Ryan Barrett 2024-04-24 15:30:20 -07:00
rodzic a79dc45b28
commit 3c62f7cfcc
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
2 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -311,6 +311,7 @@ def create_task(queue, delay=None, **params):
def email_me(msg):
assert False # not working, SMTP woes :(
if not DEBUG:
util.send_email(smtp_host=SMTP_HOST, smtp_port=SMTP_PORT,
from_='scufflechuck@gmail.com', to='bridgy-fed@ryanb.org',

Wyświetl plik

@ -237,7 +237,7 @@ class User(StringIdModel, metaclass=ProtocolUserMeta):
old_val = getattr(user, field, None)
new_val = kwargs.get(field)
if ((old_val is None and new_val is not None)
or (field == 'direct' and not old_val and new_val)):
or (field == 'direct' and not old_val and new_val)):
setattr(user, field, new_val)
user.put()
@ -377,7 +377,6 @@ class User(StringIdModel, metaclass=ProtocolUserMeta):
msg = f'Enabled {to_proto.LABEL} for {self.key.id()} : {self.user_page_path()}'
logger.info(msg)
common.email_me(msg)
def disable_protocol(self, to_proto):
"""Removes ``to_proto` from :attr:`enabled_protocols`.
@ -398,7 +397,6 @@ class User(StringIdModel, metaclass=ProtocolUserMeta):
msg = f'Disabled {to_proto.LABEL} for {self.key.id()} : {self.user_page_path()}'
logger.info(msg)
common.email_me(msg)
def handle_as(self, to_proto):
"""Returns this user's handle in a different protocol.