Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
ad6d18d306 | |||
7ddcd88862 | |||
9d6b7f3b29 | |||
8be9fc38b6 |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartmail",
|
"name": "@pushrocks/smartmail",
|
||||||
"version": "1.0.9",
|
"version": "1.0.11",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartmail",
|
"name": "@pushrocks/smartmail",
|
||||||
"version": "1.0.9",
|
"version": "1.0.11",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "a unified format for representing and dealing with mails",
|
"description": "a unified format for representing and dealing with mails",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
@ -22,6 +22,10 @@ export class Smartmail<T> {
|
|||||||
this.attachments.push(smartfileArg);
|
this.attachments.push(smartfileArg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public getCreationObject(): T {
|
||||||
|
return this.options.creationObjectRef;
|
||||||
|
}
|
||||||
|
|
||||||
public getSubject(dataArg: any = {}) {
|
public getSubject(dataArg: any = {}) {
|
||||||
const smartmustache = new plugins.smartmustache.SmartMustache(this.options.subject);
|
const smartmustache = new plugins.smartmustache.SmartMustache(this.options.subject);
|
||||||
return smartmustache.applyData(dataArg);
|
return smartmustache.applyData(dataArg);
|
||||||
|
Reference in New Issue
Block a user