""" Options: Date: 2025-05-04 20:34:44 Version: 8.71 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://team.evovoice.io #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: SendTestEmail.* #ExcludeTypes: #DefaultImports: datetime,decimal,marshmallow.fields:*,servicestack:*,typing:*,dataclasses:dataclass/field,dataclasses_json:dataclass_json/LetterCase/Undefined/config,enum:Enum/IntEnum #DataClass: #DataClassJson: """ import datetime import decimal from marshmallow.fields import * from servicestack import * from typing import * from dataclasses import dataclass, field from dataclasses_json import dataclass_json, LetterCase, Undefined, config from enum import Enum, IntEnum @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class EmailAccount: id: Optional[str] = None server: Optional[str] = None user_name: Optional[str] = None port: int = 0 email_address: Optional[str] = None display_name: Optional[str] = None password: Optional[str] = None # @Route("/settings/test-email", "POST") # @Api(Description="Send a test email from the specified account") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class SendTestEmail(IReturnVoid, IPost): """ Send a test email from the specified account """ # @ApiMember(Description="The email account to send from") account: Optional[EmailAccount] = None """ The email account to send from """ # @ApiMember(Description="The user to send to") email_address: Optional[str] = None """ The user to send to """