MAil changes
This commit is contained in:
parent
1d900f94d3
commit
1b5a4f2678
|
@ -612,52 +612,9 @@ languages = {
|
|||
ISO_INV = {v: k for k, v in COUNTRY_LIST.items()}
|
||||
ISO_LAN = {v: k for k, v in languages.items()}
|
||||
|
||||
# CRONJOBS = [
|
||||
|
||||
# lpp task deadline cron job
|
||||
# ('*/5 * * * *','conversion.cron.delete_empty_files_existing', '>>'+os.path.join(BASE_DIR,'log/debug7.log')),
|
||||
# translation service down alert
|
||||
# ('2 */6 * * *', 'conversion.cron.check_transalation_services'),
|
||||
# ('2 */6 * * *', 'conversion.cron.delete_trasalation_services'),
|
||||
# # idea mall emails
|
||||
# ("00 16 * * *", "ideamall.cronmails.mailtoauctionwinner"),
|
||||
# ("00 16 * * *", "ideamall.cronmails.mailweekleft"),
|
||||
# ("00 16 * * *", "ideamall.cronmails.mailoneleft"),
|
||||
# # AutoUpdate conversion Rates
|
||||
# ("00 8 * * *", "payment.views.custom_conversion_rate"),
|
||||
# # credits for MM every month
|
||||
# ("00 00 30 * *", "relationshipmanager.views.credit_monthly_outsession"),
|
||||
#
|
||||
# #Institutional Membership
|
||||
# ('0 0 * * *', 'institutional.views.deactivate_expired_accounts'),
|
||||
# ('0 0 1 * *', 'institutional.views.deactivate_accounts_with_pending_payments'),
|
||||
# ('0 0 * * *', 'institutional.views.send_deactivation_reminder_emails'),
|
||||
#
|
||||
#
|
||||
# #auto refund
|
||||
# ('0 1 * * *','subtitling3.cronjob.subtitlerefund'),
|
||||
#
|
||||
# # For reminder mail in messiah
|
||||
# ('*/5 * * * *','relationshipmanager.cron.remindermail'),
|
||||
|
||||
|
||||
# ]
|
||||
|
||||
#EMAIL_HOST_USER = os.environ.get('EMAIL_HOST_USER')
|
||||
#EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD')
|
||||
|
||||
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
||||
|
||||
# SMTP server settings
|
||||
EMAIL_HOST = 'smtp.gmail.com' # Replace 'smtp.example.com' with your SMTP server address
|
||||
EMAIL_PORT = 587 # Replace with your SMTP server port, typically 587 for TLS/STARTTLS
|
||||
EMAIL_USE_TLS = True # Enable TLS/STARTTLS if required
|
||||
|
||||
# SMTP authentication settings
|
||||
#EMAIL_HOST_USER = 'your_email@example.com' # Replace with your email address
|
||||
EMAIL_HOST_USER_NAME = os.environ.get('EMAIL_HOST_USER_NAME')
|
||||
EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD') # Reace with your email password
|
||||
EMAIL_HOST_USER = os.environ.get('EMAIL_HOST_USER')
|
||||
|
||||
smtp_host = os.environ.get('SMTP_HOST')
|
||||
smtp_port = int(os.environ.get('SMTP_PORT'))
|
||||
|
@ -666,7 +623,19 @@ smtp_password = os.environ.get('SMTP_PASSWORD')
|
|||
#EMAIL_USE_SSL = True
|
||||
|
||||
COUNTRY_KEY = "00000000000000000000000000000000"
|
||||
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
||||
EMAIL_HOST_USER = os.environ.get('EMAIL_HOST_USER')
|
||||
EMAIL_HOST_USER_NAME = os.environ.get('EMAIL_HOST_USER_NAME')
|
||||
EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD')
|
||||
|
||||
# SMTP server settings
|
||||
EMAIL_HOST = 'smtp.gmail.com' # Replace 'smtp.example.com' with your SMTP server address
|
||||
EMAIL_PORT = 587 # Replace with your SMTP server port, typically 587 for TLS/STARTTLS
|
||||
EMAIL_USE_TLS = True # Enable TLS/STARTTLS if required
|
||||
SMTP_HOST = os.environ.get('SMTP_HOST')
|
||||
SMTP_PORT = int(os.environ.get('SMTP_PORT'))
|
||||
SMTP_USERNAME = os.environ.get('SMTP_USERNAME')
|
||||
SMTP_PASSWORD = os.environ.get('SMTP_PASSWORD')
|
||||
|
||||
|
||||
def discount_xlsx_reader(filePath:str):
|
||||
|
|
Loading…
Reference in New Issue