var request = new ClientMessageSendFileRequest
{
Account = "email.multi.account",
File = new MemoryStream(File.ReadAllBytes("/path/to/message.eml")),
Storage = "First Storage",
AccountStorageFolder = "email/account/location/on/storage",
Format = "Eml"
};
ClientMessageSendFileRequest request = Models.clientMessageSendFileRequest()
.account("email.multi.account")
.file(IOUtils.toByteArray(new FileInputStream("/path/to/message.eml")))
.storage("First Storage")
.accountStorageFolder("email/account/location/on/storage")
.format("Eml")
.build();
request = models.ClientMessageSendFileRequest(
account='email.multi.account',
file='/path/to/message.eml',
storage='First Storage',
account_storage_folder='email/account/location/on/storage',
format='Eml')
request = ClientMessageSendFileRequest.new(
account: 'email.multi.account',
file: File.new('/path/to/message.eml'),
storage: 'First Storage',
account_storage_folder: 'email/account/location/on/storage',
format: 'Eml')
let request = Models.ClientMessageSendFileRequest()
.account('email.multi.account')
.file(fs.readFileSync('/path/to/message.eml'))
.storage('First Storage')
.accountStorageFolder('email/account/location/on/storage')
.format('Eml')
.build();
$request = Models::ClientMessageSendFileRequest()
->account('email.multi.account')
->file(new SplFileObject('/path/to/message.eml'))
->storage('First Storage')
->account_storage_folder('email/account/location/on/storage')
->format('Eml')
->build();