@@ -686,6 +686,7 @@ def write_api_call_to_transaction_log(
686
686
if send_mail_on_failure :
687
687
subject , content = render_email_message_from_jinja (
688
688
'transaction_log_error' ,
689
+ config .EMAIL_CONFIG_PATH ,
689
690
config = config ,
690
691
user = user ,
691
692
current_time = current_time ,
@@ -735,6 +736,7 @@ async def check_key_rotation(
735
736
736
737
subject , content = render_email_message_from_jinja (
737
738
'api_key_rotation' ,
739
+ config .EMAIL_CONFIG_PATH ,
738
740
config = config ,
739
741
user = user ,
740
742
)
@@ -856,6 +858,7 @@ async def api_form_create(
856
858
if config .SMTP_ENABLED :
857
859
subject , content = render_email_message_from_jinja (
858
860
'form_created' ,
861
+ config .EMAIL_CONFIG_PATH ,
859
862
config = config ,
860
863
form_name = form_name ,
861
864
document_id = document_id
@@ -1411,6 +1414,7 @@ async def api_form_update(
1411
1414
if config .SMTP_ENABLED :
1412
1415
subject , content = render_email_message_from_jinja (
1413
1416
'form_updated' ,
1417
+ config .EMAIL_CONFIG_PATH ,
1414
1418
config = config ,
1415
1419
form_name = form_name ,
1416
1420
document_id = document_id
@@ -1521,6 +1525,7 @@ async def api_form_delete(
1521
1525
1522
1526
subject , content = render_email_message_from_jinja (
1523
1527
'form_deleted' ,
1528
+ config .EMAIL_CONFIG_PATH ,
1524
1529
config = config ,
1525
1530
form_name = form_name ,
1526
1531
document_id = document_id
@@ -1629,6 +1634,7 @@ async def api_form_restore(
1629
1634
1630
1635
subject , content = render_email_message_from_jinja (
1631
1636
'form_restored' ,
1637
+ config .EMAIL_CONFIG_PATH ,
1632
1638
config = config ,
1633
1639
form_name = form_name ,
1634
1640
document_id = document_id
@@ -1887,6 +1893,7 @@ async def api_form_sign(
1887
1893
1888
1894
subject , content = render_email_message_from_jinja (
1889
1895
'form_signed' ,
1896
+ config .EMAIL_CONFIG_PATH ,
1890
1897
config = config ,
1891
1898
form_name = form_name ,
1892
1899
document_id = document_id
@@ -1994,6 +2001,7 @@ async def api_form_sign(
1994
2001
1995
2002
subject , content = render_email_message_from_jinja (
1996
2003
'form_unsigned' ,
2004
+ config .EMAIL_CONFIG_PATH ,
1997
2005
config = config ,
1998
2006
form_name = form_name ,
1999
2007
document_id = document_id
@@ -2257,6 +2265,7 @@ async def api_auth_create(
2257
2265
2258
2266
subject , content = render_email_message_from_jinja (
2259
2267
'suspicious_activity' ,
2268
+ config .EMAIL_CONFIG_PATH ,
2260
2269
config = config ,
2261
2270
)
2262
2271
# print(subject, content)
@@ -2317,6 +2326,7 @@ async def api_auth_create(
2317
2326
2318
2327
subject , content = render_email_message_from_jinja (
2319
2328
'user_registered_verification' ,
2329
+ config .EMAIL_CONFIG_PATH ,
2320
2330
config = config ,
2321
2331
username = new_username ,
2322
2332
key = _key ,
@@ -2326,6 +2336,7 @@ async def api_auth_create(
2326
2336
2327
2337
subject , content = render_email_message_from_jinja (
2328
2338
'user_registered' ,
2339
+ config .EMAIL_CONFIG_PATH ,
2329
2340
config = config ,
2330
2341
username = new_username ,
2331
2342
)
@@ -2472,6 +2483,7 @@ async def api_auth_change_password(
2472
2483
2473
2484
subject , content = render_email_message_from_jinja (
2474
2485
'user_password_changed' ,
2486
+ config .EMAIL_CONFIG_PATH ,
2475
2487
config = config ,
2476
2488
username = user ,
2477
2489
)
@@ -2661,6 +2673,7 @@ async def api_auth_forgot_password(
2661
2673
2662
2674
subject , content = render_email_message_from_jinja (
2663
2675
'password_reset_instructions' ,
2676
+ config .EMAIL_CONFIG_PATH ,
2664
2677
config = config ,
2665
2678
otp = otp ,
2666
2679
user = user
@@ -2811,6 +2824,7 @@ async def api_auth_forgot_password_confirm(
2811
2824
2812
2825
subject , content = render_email_message_from_jinja (
2813
2826
'password_reset_complete' ,
2827
+ config .EMAIL_CONFIG_PATH ,
2814
2828
config = config ,
2815
2829
user = user
2816
2830
)
@@ -3091,6 +3105,7 @@ async def api_auth_help(
3091
3105
3092
3106
subject , content = render_email_message_from_jinja (
3093
3107
'help_request' ,
3108
+ config .EMAIL_CONFIG_PATH ,
3094
3109
user = user ,
3095
3110
config = config ,
3096
3111
time = time_str ,
@@ -3273,6 +3288,7 @@ async def api_admin_create_user(
3273
3288
3274
3289
subject , content = render_email_message_from_jinja (
3275
3290
'user_registered_admin' ,
3291
+ config .EMAIL_CONFIG_PATH ,
3276
3292
config = config ,
3277
3293
username = new_username ,
3278
3294
)
@@ -3673,6 +3689,7 @@ async def api_form_delete(
3673
3689
3674
3690
subject , content = render_email_message_from_jinja (
3675
3691
'form_deleted' ,
3692
+ config .EMAIL_CONFIG_PATH ,
3676
3693
config = config ,
3677
3694
form_name = form_name ,
3678
3695
document_id = document_id
@@ -3767,6 +3784,7 @@ async def api_form_restore(
3767
3784
3768
3785
subject , content = render_email_message_from_jinja (
3769
3786
'form_restored' ,
3787
+ config .EMAIL_CONFIG_PATH ,
3770
3788
config = config ,
3771
3789
form_name = form_name ,
3772
3790
document_id = document_id
0 commit comments