You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: 'Use this method to send emails from a user account',
632
+
validationObjs: {
633
+
requestBody: {
634
+
mailbox: mailboxId,
635
+
from: AddressOptionalName.description('Addres for the From: header'),
636
+
replyTo: AddressOptionalName.description('Address for the Reply-To: header'),
637
+
to: Joi.array()
638
+
.items(
639
+
Joi.object({
640
+
name: Joi.string().empty('').max(255).description('Name of the sender'),
641
+
address: Joi.string().email({ tlds: false }).failover('').required().description('Address of the sender')
642
+
}).$_setFlag('objectName', 'AddressOptionalName')
643
+
)
644
+
.description('Addresses for the To: header'),
645
+
646
+
cc: AddressOptionalNameArray.description('Addresses for the Cc: header'),
647
+
648
+
bcc: AddressOptionalNameArray.description('Addresses for the Bcc: header'),
649
+
650
+
headers: Joi.array()
651
+
.items(Header)
652
+
.description(
653
+
'Custom headers for the message. If reference message is set then In-Reply-To and References headers are set automatically'
654
+
),
655
+
subject: Joi.string()
656
+
.empty('')
657
+
.max(2 * 1024)
658
+
.description('Message subject. If not then resolved from Reference message'),
659
+
text: Joi.string()
660
+
.empty('')
661
+
.max(1024 * 1024)
662
+
.description('Plaintext message'),
663
+
html: Joi.string()
664
+
.empty('')
665
+
.max(1024 * 1024)
666
+
.description('HTML formatted message'),
667
+
attachments: Joi.array().items(Attachment).description('Attachments for the message'),
668
+
669
+
meta: metaDataSchema.label('metaData').description('Optional metadata, must be an object or JSON formatted string'),
670
+
sess: sessSchema,
671
+
ip: sessIPSchema,
672
+
reference: ReferenceWithAttachments.description(
673
+
'Optional referenced email. If uploaded message is a reply draft and relevant fields are not provided then these are resolved from the message to be replied to'
674
+
),
675
+
// if true then treat this message as a draft
676
+
isDraft: booleanSchema.default(false).description('Is the message a draft or not'),
677
+
// if set then this message is based on a draft that should be deleted after processing
0 commit comments