Browse Source

Included both mail examples in the configs

sh4nks 11 years ago
parent
commit
b6602af00a
2 changed files with 25 additions and 7 deletions
  1. 15 6
      flaskbb/configs/development.py.example
  2. 10 1
      flaskbb/configs/production.py.example

+ 15 - 6
flaskbb/configs/development.py.example

@@ -40,12 +40,21 @@ class DevelopmentConfig(DefaultConfig):
     RECAPTCHA_OPTIONS = {"theme": "white"}
 
     # Mail
-    # Google Mail example
-    MAIL_SERVER = "smtp.googlemail.com"
+    # Local SMTP Server
+    #MAIL_SERVER = "localhost"
+    #MAIL_PORT = 25
+    #MAIL_USE_SSL = False
+    #MAIL_USERNAME = ""
+    #MAIL_PASSWORD = ""
+    #MAIL_DEFAULT_SENDER = "noreply@example.org"
+
+    # Google Mail Example
+    MAIL_SERVER = "smtp.gmail.com"
     MAIL_PORT = 465
     MAIL_USE_SSL = True
-    MAIL_USERNAME = "flaskbb@gmail.com"
+    MAIL_USERNAME = "your_username@gmail.com"
     MAIL_PASSWORD = "your_password"
-    MAIL_DEFAULT_SENDER = "flaskbb@gmail.com"
-    # Where to logger should send the emails to
-    ADMINS = ["flaskbb@gmail.com"]
+    MAIL_DEFAULT_SENDER = ("Your Name", "your_username@gmail.com")
+
+    # The user who should recieve the error logs
+    ADMINS = ["your_admin_user@gmail.com"]

+ 10 - 1
flaskbb/configs/production.py.example

@@ -49,6 +49,14 @@ class ProductionConfig(DefaultConfig):
 
 
     ## Mail
+    # Local SMTP Server
+    #MAIL_SERVER = "localhost"
+    #MAIL_PORT = 25
+    #MAIL_USE_SSL = False
+    #MAIL_USERNAME = ""
+    #MAIL_PASSWORD = ""
+    #MAIL_DEFAULT_SENDER = "noreply@example.org"
+
     # Google Mail Example
     MAIL_SERVER = "smtp.gmail.com"
     MAIL_PORT = 465
@@ -56,7 +64,8 @@ class ProductionConfig(DefaultConfig):
     MAIL_USERNAME = "your_username@gmail.com"
     MAIL_PASSWORD = "your_password"
     MAIL_DEFAULT_SENDER = ("Your Name", "your_username@gmail.com")
-    # Where to logger should send the emails to
+
+    # The user who should recieve the error logs
     ADMINS = ["your_admin_user@gmail.com"]