2 Commits

Author SHA1 Message Date
9d6b7f3b29 1.0.10 2020-01-13 15:52:03 +00:00
8be9fc38b6 fix(core): update 2020-01-13 15:52:02 +00:00
3 changed files with 6 additions and 2 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartmail",
"version": "1.0.9",
"version": "1.0.10",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartmail",
"version": "1.0.9",
"version": "1.0.10",
"private": false,
"description": "a unified format for representing and dealing with mails",
"main": "dist/index.js",

View File

@ -22,6 +22,10 @@ export class Smartmail<T> {
this.attachments.push(smartfileArg);
}
public getCretionObject(): T {
return this.options.creationObjectRef;
}
public getSubject(dataArg: any = {}) {
const smartmustache = new plugins.smartmustache.SmartMustache(this.options.subject);
return smartmustache.applyData(dataArg);