_email
EmailSettings
¶
Bases: BaseSettings
Class with settings for email-sending feature.
| ATTRIBUTE | DESCRIPTION |
|---|---|
FRACTAL_EMAIL_SENDER |
Address of the OAuth-signup email sender.
TYPE:
|
FRACTAL_EMAIL_PASSWORD |
Password for the OAuth-signup email sender.
TYPE:
|
FRACTAL_EMAIL_SMTP_SERVER |
SMTP server for the OAuth-signup emails.
TYPE:
|
FRACTAL_EMAIL_SMTP_PORT |
SMTP server port for the OAuth-signup emails.
TYPE:
|
FRACTAL_EMAIL_INSTANCE_NAME |
Fractal instance name, to be included in the OAuth-signup emails.
TYPE:
|
FRACTAL_EMAIL_RECIPIENTS |
Comma-separated list of recipients of the OAuth-signup emails.
TYPE:
|
FRACTAL_EMAIL_USE_STARTTLS |
Whether to use StartTLS when using the SMTP server.
TYPE:
|
FRACTAL_EMAIL_USE_LOGIN |
Whether to use login when using the SMTP server. If 'true', FRACTAL_EMAIL_PASSWORD must be provided.
TYPE:
|
Source code in fractal_server/config/_email.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | |
public = None
class-attribute
instance-attribute
¶
The validated field which is actually used in fractal-server,
automatically populated upon creation.
validate_email_settings()
¶
Set self.public.
Source code in fractal_server/config/_email.py
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | |
PublicEmailSettings
¶
Bases: BaseModel
Schema for EmailSettings.public, namely the ready-to-use settings.
| ATTRIBUTE | DESCRIPTION |
|---|---|
sender |
Sender email address.
TYPE:
|
recipients |
List of recipients email address.
TYPE:
|
smtp_server |
SMTP server address.
TYPE:
|
port |
SMTP server port.
TYPE:
|
password |
Sender password.
TYPE:
|
instance_name |
Name of SMTP server instance.
TYPE:
|
use_starttls |
Whether to use the security protocol.
TYPE:
|
use_login |
Whether to use login.
TYPE:
|
Source code in fractal_server/config/_email.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | |