Sfoglia il codice sorgente

Set example email config

pull/33/head
Jakob Notland 5 anni fa
parent
commit
8d1ef7f01f
1 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  1. +10
    -0
      src/app/views/app.py

+ 10
- 0
src/app/views/app.py Vedi File

@@ -10,6 +10,16 @@ from views.project import Project
from views.index import Index
from views.apply import Apply

# Connect to smtp server, enables web.sendmail()
try:
smtp_server = os.getenv("smtp_server") + ":25"
web.config.smtp_server = smtp_server
except:
smtp_server = "molde.idi.ntnu.no:25"
web.config.smtp_server = smtp_server

# Example use of the smtp server, insert username
# web.sendmail("beelance@ntnu.no", "<username>@stud.ntnu.no", "Hello", "Grz, the beelance app is running")

# Define application routes
urls = (


Loading…
Annulla
Salva