mirror of
https://git.ugnet.gay/CrossTalk/azul.git
synced 2026-11-25 08:09:55 +00:00
h
This commit is contained in:
1 parent
b89e1932bb
commit
a468b880e5
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -1365,7 +1365,7 @@ class BackendSession(Session):
|
|||||||
invite_msg = f"""\
|
invite_msg = f"""\
|
||||||
Subject: {sender_email} wants to talk to you using CrossTalk!
|
Subject: {sender_email} wants to talk to you using CrossTalk!
|
||||||
To: {email}
|
To: {email}
|
||||||
From: CrossTalk network administration <administration@ugnet.xyz>
|
From: CrossTalk network administration <ct-noreply@hiden.cc>
|
||||||
|
|
||||||
This e-mail was sent to you because {sender_info} wants to chat with you using the CrossTalk service, and you don't have an account.
|
This e-mail was sent to you because {sender_info} wants to chat with you using the CrossTalk service, and you don't have an account.
|
||||||
|
|
||||||
@@ -1388,7 +1388,7 @@ They've attached this message, as well:
|
|||||||
with smtplib.SMTP(settings.SMTP_HOST, settings.SMTP_PORT) as server:
|
with smtplib.SMTP(settings.SMTP_HOST, settings.SMTP_PORT) as server:
|
||||||
server.starttls()
|
server.starttls()
|
||||||
server.login(settings.SMTP_USERNAME, settings.SMTP_PASSWORD)
|
server.login(settings.SMTP_USERNAME, settings.SMTP_PASSWORD)
|
||||||
server.sendmail("administration@ugnet.xyz", email, invite_msg)
|
server.sendmail("ct-noreply@hiden.cc", email, invite_msg)
|
||||||
else:
|
else:
|
||||||
print(f"[Mailer] <Info> {sender_email} already has an account. Not sending an invitation e-mail.")
|
print(f"[Mailer] <Info> {sender_email} already has an account. Not sending an invitation e-mail.")
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -54,7 +54,7 @@ SUSPENDED_ACCOUNT_DAYS = 30
|
|||||||
# SMTP
|
# SMTP
|
||||||
SMTP_HOST = 'mail-server-here'
|
SMTP_HOST = 'mail-server-here'
|
||||||
SMTP_PORT = 587
|
SMTP_PORT = 587
|
||||||
SMTP_USERNAME = 'administration@ugnet.xyz'
|
SMTP_USERNAME = 'ct-noreply@hiden.cc'
|
||||||
SMTP_PASSWORD = ''
|
SMTP_PASSWORD = ''
|
||||||
|
|
||||||
# What frontends are enabled
|
# What frontends are enabled
|
||||||
|
|||||||
Reference in new issue
Block a user