Aspose.Email Cloud 20.10 Release Notes
SDK Changes
Model builders have been added for Typescript, PHP, Java SDKs to simplify the initialization.
let emailDto = Models.emailDto()
.body('Some body')
.from(Models.mailAddress()
.displayName('From Address')
.address('from@aspose.com')
.build())
.subject('Re: Some subject')
.to([
Models.mailAddress()
.displayName('To Address')
.address('to@aspose.com')
.build()])
.build();
$emailDto = Models::emailDto()
->body('Some body')
->from(Models::mailAddress()
->displayName('From Address')
->address('from@aspose.com')
->build())
->subject('Re: Some subject')
->to(array(
Models::mailAddress()
->displayName('To Address')
->address('to@aspose.com')
->build()))
->build();
EmailDto emailDto = Models.emailDto()
.body("Some body")
.from(Models.mailAddress()
.displayName("From Address")
.address("from@aspose.com")
.build())
.subject("Re: Some subject")
.to(Arrays.<MailAddress>asList(
Models.mailAddress()
.displayName("To Address")
.address("to@aspose.com")
.build()))
.build();
Documentation improvements
- SDK reference documentation is now available at docs.aspose.cloud/email/reference-api
- All SDK methods have code examples with parameters initialization (for example: EmailCloud.Email.AsFile method).
- Initialization examples have been added for some of the models in all SDKs (for example: EmailDto model).