var request = new EmailFromFileRequest
{
Format = "Eml",
File = new MemoryStream(File.ReadAllBytes("/path/to/message.eml"))
};
EmailFromFileRequest request = Models.emailFromFileRequest()
.format("Eml")
.file(IOUtils.toByteArray(new FileInputStream("/path/to/message.eml")))
.build();
request = models.EmailFromFileRequest(
format='Eml',
file='/path/to/message.eml')
request = EmailFromFileRequest.new(
format: 'Eml',
file: File.new('/path/to/message.eml'))
let request = Models.EmailFromFileRequest()
.format('Eml')
.file(fs.readFileSync('/path/to/message.eml'))
.build();
$request = Models::EmailFromFileRequest()
->format('Eml')
->file(new SplFileObject('/path/to/message.eml'))
->build();