email_statements.py
1 | DELAY = 2 # descanso entre cada par de emails, para que no se mosquee el sysadmin |
---|---|
2 | FROM_ADDRESS = "YOUR_EMAIL"
|
3 | SMTPUSER = 'YOUR_SMTP_USER' # for SMTP AUTH, set SMTP username here |
4 | #El password se introduce por consola, para mayor seguridad
|
5 | SMTPSERVER = 'YOUR_EMAIL_SMTP_SERVER'
|
6 | SMTPPORT = 465
|
7 | AUTHREQUIRED = 1 # if you need to use SMTP AUTH set to 1 |
8 | |
9 | |
10 | SUBJECT= "Today's exam"
|
11 | BODY_TEMPLATE = '''
|
12 | Hi: |
13 |
|
14 | Please find your exam for today attached bla bla. |
15 |
|
16 | The conditions are: |
17 |
|
18 | - Lorem ipsum... |
19 | - dolor... |
20 |
|
21 | Regards |
22 | '''
|
23 | FICHERO_LISTA_EMAILS = 'email_list_statements'
|
24 |