-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
sourovamin
committed
Nov 28, 2024
1 parent
f409b96
commit 027e968
Showing
5 changed files
with
12 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,7 @@ services: | |
# MAIL_PASSWORD: ${MAIL_PASSWORD} | ||
# MAIL_SERVER: mail.age.mpg.de | ||
MAIL_USERNAME: [email protected] | ||
MAIL_USERNAME_ADDRESS: [email protected] | ||
links: | ||
- mariadb | ||
depends_on: | ||
|
@@ -161,6 +162,7 @@ services: | |
# MAIL_PORT: 587 | ||
# MAIL_SERVER: mail.age.mpg.de | ||
MAIL_USERNAME: [email protected] | ||
MAIL_USERNAME_ADDRESS: [email protected] | ||
ADMINS: [email protected] | ||
# MAIL_USE_TLS: '1' | ||
MYSQL_HOST: mariadb | ||
|
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 |
---|---|---|
|
@@ -71,9 +71,11 @@ spec: | |
- name: MAIL_PORT | ||
value: "587" | ||
- name: MAIL_SERVER | ||
value: mail.age.mpg.de | ||
value: mail.ox.gwdg.de | ||
- name: MAIL_USERNAME | ||
value: [email protected] | ||
- name: MAIL_USERNAME_ADDRESS | ||
value: [email protected] | ||
- name: MAIL_USE_TLS | ||
value: "1" | ||
- name: MYSQL_HOST | ||
|
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 |
---|---|---|
|
@@ -69,8 +69,9 @@ services: | |
FLASK_ENV: production | ||
MAIL_PASSWORD: ${MAIL_PASSWORD} | ||
MAIL_PORT: 587 | ||
MAIL_SERVER: mail.age.mpg.de | ||
MAIL_SERVER: mail.ox.gwdg.de | ||
MAIL_USERNAME: [email protected] | ||
MAIL_USERNAME_ADDRESS: [email protected] | ||
ADMINS: [email protected] | ||
MAIL_USE_TLS: '1' | ||
MYSQL_HOST: mariadb | ||
|
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 |
---|---|---|
|
@@ -412,7 +412,7 @@ def make_except_toast(text=None,id=None,e=None,user=None, eapp=None): | |
emsg_html=tb_str.split("\n") | ||
send_email( | ||
'[Flaski] exception: %s ' %eapp, | ||
sender=app.config['MAIL_USERNAME'], | ||
sender=app.config['MAIL_USERNAME_ADDRESS'], | ||
recipients=app.config['ADMINS'], | ||
text_body=render_template( | ||
'email/app_exception.txt', | ||
|
@@ -518,7 +518,7 @@ def ask_for_help(tb_str, user, current_app, session_data=None ): | |
session_file_name="no session data for this Exception" | ||
|
||
send_email('[Flaski] help needed: %s ' %current_app, | ||
sender=app.config['MAIL_USERNAME'], | ||
sender=app.config['MAIL_USERNAME_ADDRESS'], | ||
recipients=app.config['ADMINS'], | ||
text_body=render_template('email/app_help.txt', | ||
user=user, eapp=current_app, emsg=tb_str, etime=str(datetime.now()), session_file=session_file_name), | ||
|
@@ -529,7 +529,7 @@ def ask_for_help(tb_str, user, current_app, session_data=None ): | |
def send_submission_email(user,submission_type,submission_tag, submission_file=None, attachment_path=None,open_type="rb",attachment_type="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"): | ||
with app.app_context(): | ||
send_email('[Flaski][Automation][{submission_type}] Files have been submited for analysis.'.format(submission_type=submission_type), | ||
sender=app.config['MAIL_USERNAME'], | ||
sender=app.config['MAIL_USERNAME_ADDRESS'], | ||
recipients=[user.email, '[email protected]' ], | ||
text_body=render_template('email/submissions.age.txt', | ||
user=user, submission_type=submission_type, submission_tag=submission_tag), | ||
|
@@ -608,7 +608,7 @@ def send_submission_ftp_email(user,submission_type,submission_tag, submission_fi | |
|
||
with app.app_context(): | ||
send_email('[Flaski][Automation][{submission_type}] Files have been submited for analysis.'.format(submission_type=submission_type), | ||
sender=app.config['MAIL_USERNAME'], | ||
sender=app.config['MAIL_USERNAME_ADDRESS'], | ||
recipients=[user.email, '[email protected]' ], | ||
text_body=render_template('email/submissions.ftp.txt', | ||
user=user, | ||
|
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 |
---|---|---|
|
@@ -188,7 +188,7 @@ def release_request(n_clicks, pathname): | |
submission_tag=os.path.basename(dest) | ||
|
||
send_email(f'[Flaski][Automation][{submission_type}] Files have been transfered.', | ||
sender=app.config['MAIL_USERNAME'], | ||
sender=app.config['MAIL_USERNAME_ADDRESS'], | ||
recipients=[user.email, '[email protected]' ], | ||
text_body=render_template('email/submissions.ftp.data.txt', | ||
user=user, filename=os.path.basename(submission_tag), submission_tag=submission_tag, submission_type=submission_type), | ||
|