@zenvia/sdk
Version:
This SDK for [Node.js](https://nodejs.org/) was created based on the [Zenvia](https://www.zenvia.com/) [API](https://zenvia.github.io/zenvia-openapi-spec/).
26 lines • 937 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EmailContent = void 0;
const abstract_content_1 = require("./abstract-content");
/**
* Implementation of email content.
*/
class EmailContent extends abstract_content_1.AbstractContent {
/**
* Returns a new `EmailContent` that can be used to send audio, image, video, or document media to your customer.
*
* @param subject The subject of the e-mail to be sent.
* @param html The content to be sent in HTML format.
* @param text The content to be sent in plain text format.
* @param attachments Files to be attached in the e-mail.
*/
constructor(subject, attachments, html, text) {
super('email');
this.subject = subject;
this.html = html;
this.text = text;
this.attachments = attachments;
}
}
exports.EmailContent = EmailContent;
//# sourceMappingURL=email.js.map