from polyaxon.config_manager import config

email_from = config.get_string('POLYAXON_EMAIL_FROM')
email_host = config.get_string('POLYAXON_EMAIL_HOST')
email_port = config.get_int('POLYAXON_EMAIL_PORT')
email_host_user = config.get_string('POLYAXON_EMAIL_HOST_USER', is_optional=True)
email_host_password = config.get_string('POLYAXON_EMAIL_HOST_PASSWORD',
                                        is_optional=True,
                                        is_secret=True)
EMAIL_BACKEND = config.get_string('POLYAXON_EMAIL_BACKEND',
                                  is_optional=True,
                                  default='django.core.mail.backends.console.EmailBackend')

@@ -41,18 +41,26 @@
 ig%0A%0A
-email_from
+DEFAULT_FROM_EMAIL
  = c
@@ -101,383 +101,1411 @@
 ROM'
-)%0Aemail_host = config.get_string('POLYAXON_EMAIL_HOST')%0Aemail_port = config.get_int('POLYAXON_EMAIL_PORT')%0Aemail_host_user = config.get_string('POLYAXON_EMAIL_HOST_USER', is_optional=True)%0Aemail_host_password = config.get_string('POLYAXON_EMAIL_HOST_PASSWORD',%0A                                        is_optional=True,%0A                                        is_secret=True)%0A
+,%0A                                       is_optional=True,%0A                                       default='polyaxon@localhost')%0AEMAIL_HOST = config.get_string('POLYAXON_EMAIL_HOST',%0A                               is_optional=True,%0A                               default='localhost')%0AEMAIL_PORT = config.get_int('POLYAXON_EMAIL_PORT',%0A                            is_optional=True,%0A                            default=25)%0AEMAIL_HOST_USER = config.get_string('POLYAXON_EMAIL_HOST_USER',%0A                                    is_optional=True,%0A                                    default='')%0AEMAIL_HOST_PASSWORD = config.get_string('POLYAXON_EMAIL_HOST_PASSWORD',%0A                                        is_optional=True,%0A                                        is_secret=True,%0A                                        default='')%0AEMAIL_SUBJECT_PREFIX = config.get_string('POLYAXON_EMAIL_SUBJECT_PREFIX',%0A                                         is_optional=True,%0A                                         default='%5BPolyaxon%5D')%0AEMAIL_USE_TLS = config.get_boolean('POLYAXON_EMAIL_USE_TLS',%0A                                   is_optional=True,%0A                                   default=False)%0AEMAIL_USE_SSL = config.get_boolean('POLYAXON_EMAIL_USE_SSL',%0A                                   is_optional=True,%0A                                   default=False)%0A%0Aif config.is_debug_mode or config.is_testing_env:%0A    
 EMAI
@@ -1586,32 +1586,36 @@
                 
+    
 is_optional=True
@@ -1608,32 +1608,36 @@
 _optional=True,%0A
+    
                 

Update email options