nbprint.config.outputs.SMTP¶
- pydantic model nbprint.config.outputs.SMTP[source]¶
Bases:
BaseModelShow JSON schema
{ "title": "SMTP", "type": "object", "properties": { "host": { "description": "SMTP server host", "title": "Host", "type": "string" }, "port": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": 25, "description": "SMTP server port", "title": "Port" }, "user": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "SMTP server username", "title": "User" }, "password": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "SMTP server password", "title": "Password" }, "tls": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": false, "description": "Use TLS for SMTP connection", "title": "Tls" }, "ssl": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": false, "description": "Use SSL for SMTP connection", "title": "Ssl" }, "timeout": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": 30, "description": "Timeout for SMTP connection in seconds", "title": "Timeout" } }, "additionalProperties": false, "required": [ "host" ] }
- Fields:
host (str)password (str | None)port (int | None)ssl (bool | None)timeout (int | None)tls (bool | None)user (str | None)
- field host: str [Required]¶
SMTP server host
- field port: int | None = 25¶
SMTP server port
- field user: str | None = None¶
SMTP server username
- field password: str | None = None¶
SMTP server password
- field tls: bool | None = False¶
Use TLS for SMTP connection
- field ssl: bool | None = False¶
Use SSL for SMTP connection
- field timeout: int | None = 30¶
Timeout for SMTP connection in seconds
- model_post_init(context: Any, /) None¶
This function is meant to behave like a BaseModel method to initialise private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self – The BaseModel instance.
context – The context.