-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update devapp1.yml Next Milestone * dark mode toggler and filter invert (#709) * Issue 693 Create RTMP media in Studio (#711) * shared configs and qr code for stream preview * auto generate unique key and check for duplication * footer version Co-authored-by: Hồng Phát <phatnh4@vng.com.vn> * remove unnecessary roles (#718) * UpStage Studio V1.4 (#721) * voice setting form * save and load voice * replicate voices * turn off media section and fix stream voice * optimize * multiframe preview * no voice in stage * fix typo and footer version (#724) Co-authored-by: Hồng Phát <phatnh4@vng.com.vn> * navigations between pages (#726) * Jitsi experiments - Meeting tool (#727) * meeting and room * jitsi iframe api * foyer link * fix firefox meeting issue and free resize (#728) * Issue 731 Forgot password (#732) * password reset in 3 steps * email template * Issue 733 Email notifications (#734) * rich text editor with tiny mce and send emails * rich text editor for foyer description * success messages * no agreed to terms (#736) * fix tiny repo in reset password email Co-authored-by: Hồng Phát <hongphat.js@gmail.com> Co-authored-by: Hồng Phát <phatnh4@vng.com.vn>
- Loading branch information
1 parent
1380011
commit a5ba7c1
Showing
146 changed files
with
24,969 additions
and
624 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from email.mime.text import MIMEText | ||
from smtplib import ( | ||
SMTP_SSL as SMTP,) # this invokes the secure SMTP protocol (port 465, uses SSL) | ||
import sys | ||
import os | ||
import re | ||
|
||
from config.settings import EMAIL_HOST, EMAIL_HOST_USER, EMAIL_HOST_PASSWORD, EMAIL_USE_TLS | ||
|
||
|
||
def send(to, subject, content): | ||
|
||
msg = MIMEText(content, "html") | ||
msg["Subject"] = subject | ||
# some SMTP servers will do this automatically, not all | ||
msg["From"] = EMAIL_HOST_USER | ||
msg["To"] = to | ||
|
||
conn = SMTP(EMAIL_HOST, 465 if EMAIL_USE_TLS else 587) | ||
conn.set_debuglevel(False) | ||
conn.login(EMAIL_HOST_USER, EMAIL_HOST_PASSWORD) | ||
try: | ||
recipients = re.split(r'[,;]\s*', to) | ||
conn.sendmail(EMAIL_HOST_USER, recipients, msg.as_string()) | ||
finally: | ||
conn.quit() |
Oops, something went wrong.