var mapiMessageSaveRequest = new MapiMessageSaveRequest
{
Format = "Msg",
StorageFile = new StorageFileLocation
{
FileName = "message.msg",
Storage = "First Storage",
FolderPath = "file/location/folder/on/storage"
},
Value = new MapiMessageDto
{
MessageBody = "Some body",
ClientSubmitTime = DateTime.Today,
DeliveryTime = DateTime.Today,
DisplayTo = "To Address",
Flags = new List<MapiMessageFlag>
{
"MsgFlagRead",
"MsgFlagUnsent",
"MsgFlagHasAttach"
},
NormalizedSubject = "Some subject",
SenderAddressType = "SMTP",
SenderEmailAddress = "from@aspose.com",
SenderName = "From Address",
SenderSmtpAddress = "from@aspose.com",
Attachments = new List<MapiAttachmentDto>
{
new MapiAttachmentDto
{
Name = "some-file.txt",
DataBase64 = "U29tZSBmaWxlIHRleHQ="
}
},
Body = "Some body",
MessageClass = "IPM.Note",
Recipients = new List<MapiRecipientDto>
{
new MapiRecipientDto
{
EmailAddress = "to@aspose.com",
AddressType = "SMTP",
DisplayName = "To Address",
RecipientType = "MapiTo"
}
},
Subject = "Re: Some subject",
SubjectPrefix = "Re: "
}
};
MapiMessageSaveRequest mapiMessageSaveRequest = Models.mapiMessageSaveRequest()
.format("Msg")
.storageFile(Models.storageFileLocation()
.fileName("message.msg")
.storage("First Storage")
.folderPath("file/location/folder/on/storage")
.build())
.value(Models.mapiMessageDto()
.messageBody("Some body")
.clientSubmitTime(Calendar.getInstance().getTime())
.deliveryTime(Calendar.getInstance().getTime())
.displayTo("To Address")
.flags(Arrays.<MapiMessageFlag>asList(
"MsgFlagRead",
"MsgFlagUnsent",
"MsgFlagHasAttach"))
.normalizedSubject("Some subject")
.senderAddressType("SMTP")
.senderEmailAddress("from@aspose.com")
.senderName("From Address")
.senderSmtpAddress("from@aspose.com")
.attachments(Arrays.<MapiAttachmentDto>asList(
Models.mapiAttachmentDto()
.name("some-file.txt")
.dataBase64("U29tZSBmaWxlIHRleHQ=")
.build()))
.body("Some body")
.messageClass("IPM.Note")
.recipients(Arrays.<MapiRecipientDto>asList(
Models.mapiRecipientDto()
.emailAddress("to@aspose.com")
.addressType("SMTP")
.displayName("To Address")
.recipientType("MapiTo")
.build()))
.subject("Re: Some subject")
.subjectPrefix("Re: ")
.build())
.build();
mapi_message_save_request = models.MapiMessageSaveRequest(
format='Msg',
storage_file=models.StorageFileLocation(
file_name='message.msg',
storage='First Storage',
folder_path='file/location/folder/on/storage'),
value=models.MapiMessageDto(
message_body='Some body',
client_submit_time=datetime.today(),
delivery_time=datetime.today(),
display_to='To Address',
flags=[
'MsgFlagRead',
'MsgFlagUnsent',
'MsgFlagHasAttach'],
normalized_subject='Some subject',
sender_address_type='SMTP',
sender_email_address='from@aspose.com',
sender_name='From Address',
sender_smtp_address='from@aspose.com',
attachments=[
models.MapiAttachmentDto(
name='some-file.txt',
data_base64='U29tZSBmaWxlIHRleHQ=')],
body='Some body',
message_class='IPM.Note',
recipients=[
models.MapiRecipientDto(
email_address='to@aspose.com',
address_type='SMTP',
display_name='To Address',
recipient_type='MapiTo')],
subject='Re: Some subject',
subject_prefix='Re: '))
mapi_message_save_request = MapiMessageSaveRequest.new(
format: 'Msg',
storage_file: StorageFileLocation.new(
file_name: 'message.msg',
storage: 'First Storage',
folder_path: 'file/location/folder/on/storage'),
value: MapiMessageDto.new(
message_body: 'Some body',
client_submit_time: DateTime.now,
delivery_time: DateTime.now,
display_to: 'To Address',
flags: [
'MsgFlagRead',
'MsgFlagUnsent',
'MsgFlagHasAttach'],
normalized_subject: 'Some subject',
sender_address_type: 'SMTP',
sender_email_address: 'from@aspose.com',
sender_name: 'From Address',
sender_smtp_address: 'from@aspose.com',
attachments: [
MapiAttachmentDto.new(
name: 'some-file.txt',
data_base64: 'U29tZSBmaWxlIHRleHQ=')],
body: 'Some body',
message_class: 'IPM.Note',
recipients: [
MapiRecipientDto.new(
email_address: 'to@aspose.com',
address_type: 'SMTP',
display_name: 'To Address',
recipient_type: 'MapiTo')],
subject: 'Re: Some subject',
subject_prefix: 'Re: '))
let mapiMessageSaveRequest = Models.mapiMessageSaveRequest()
.format('Msg')
.storageFile(Models.storageFileLocation()
.fileName('message.msg')
.storage('First Storage')
.folderPath('file/location/folder/on/storage')
.build())
.value(Models.mapiMessageDto()
.messageBody('Some body')
.clientSubmitTime(new Date())
.deliveryTime(new Date())
.displayTo('To Address')
.flags([
'MsgFlagRead',
'MsgFlagUnsent',
'MsgFlagHasAttach'])
.normalizedSubject('Some subject')
.senderAddressType('SMTP')
.senderEmailAddress('from@aspose.com')
.senderName('From Address')
.senderSmtpAddress('from@aspose.com')
.attachments([
Models.mapiAttachmentDto()
.name('some-file.txt')
.dataBase64('U29tZSBmaWxlIHRleHQ=')
.build()])
.body('Some body')
.messageClass('IPM.Note')
.recipients([
Models.mapiRecipientDto()
.emailAddress('to@aspose.com')
.addressType('SMTP')
.displayName('To Address')
.recipientType('MapiTo')
.build()])
.subject('Re: Some subject')
.subjectPrefix('Re: ')
.build())
.build();
$mapiMessageSaveRequest = Models::mapiMessageSaveRequest()
->format('Msg')
->storageFile(Models::storageFileLocation()
->fileName('message.msg')
->storage('First Storage')
->folderPath('file/location/folder/on/storage')
->build())
->value(Models::mapiMessageDto()
->messageBody('Some body')
->clientSubmitTime(new DateTime())
->deliveryTime(new DateTime())
->displayTo('To Address')
->flags(array(
'MsgFlagRead',
'MsgFlagUnsent',
'MsgFlagHasAttach'))
->normalizedSubject('Some subject')
->senderAddressType('SMTP')
->senderEmailAddress('from@aspose.com')
->senderName('From Address')
->senderSmtpAddress('from@aspose.com')
->attachments(array(
Models::mapiAttachmentDto()
->name('some-file.txt')
->dataBase64('U29tZSBmaWxlIHRleHQ=')
->build()))
->body('Some body')
->messageClass('IPM.Note')
->recipients(array(
Models::mapiRecipientDto()
->emailAddress('to@aspose.com')
->addressType('SMTP')
->displayName('To Address')
->recipientType('MapiTo')
->build()))
->subject('Re: Some subject')
->subjectPrefix('Re: ')
->build())
->build();