""" Options: Date: 2025-10-28 03:49:35 Version: 8.80 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://duengageapi.uat.scadsoftware.com #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: SendMailRequest.* #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 # @Route("/communication/sendmail", "POST") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class SendMailRequest: # @ApiMember(Description="Email address of sender. If it is not set the a default address will be used.") from_address: Optional[str] = None """ Email address of sender. If it is not set the a default address will be used. """ # @ApiMember(Description="List of recipient email addresses", IsRequired=true) recipients: Optional[List[str]] = None """ List of recipient email addresses """ # @ApiMember(Description="Email subject", IsRequired=true) subject: Optional[str] = None """ Email subject """ # @ApiMember(Description="Plain text body. Either this or HtmlBody is required") body: Optional[str] = None """ Plain text body. Either this or HtmlBody is required """ # @ApiMember(Description="Html body. Either this or Body is required") html_body: Optional[str] = None """ Html body. Either this or Body is required """ # @ApiMember(Description="Email attachments") attachments: Optional[List[str]] = None """ Email attachments """ # @ApiMember(Description="Email attachments") attachments_object: Optional[List[Attachment]] = None """ Email attachments """ # @ApiMember(Description="Attachment streams") attachment_streams: Optional[List[AttachmentStream]] = None """ Attachment streams """ # @ApiMember(Description="Template substitutions") template_substitutions: Optional[Dict[str, str]] = None """ Template substitutions """ # @ApiMember(Description="Template Id") template_id: Optional[str] = None """ Template Id """ # @ApiMember(Description="List of BCC email addresses") bcc: Optional[List[str]] = None """ List of BCC email addresses """ # @ApiMember(Description="List of CC email addresses") cc: Optional[List[str]] = None """ List of CC email addresses """