Page MenuHomeSealhub

message.js
No OneTemporary

message.js

const assert = require("assert");
module.exports = class Message {
constructor({ to, subject, html, attachments, text }) {
assert(to);
assert(subject);
assert(html);
assert(attachments === undefined || Array.isArray(attachments));
Object.assign(this, { to, subject, html, attachments, text });
}
async send(app) {
return app.Mail.send(this);
}
};

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 28, 15:07 (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1068080
Default Alt Text
message.js (364 B)

Event Timeline