@resolveio/server-lib 4.0.7 → 4.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,7 +16,7 @@ export declare class SupportManager {
16
16
  callSupportMethodInternal(supportMethod: any, ...methodData: any[]): Promise<any>;
17
17
  callMethodInternal(method: any, ...methodData: any[]): Promise<any>;
18
18
  private sendWS;
19
- sendEmail(sendTo: string, subject: string, text?: string, html?: string, attachments?: any[]): void;
19
+ sendEmail(sendTo: string, subject: string, text?: string, html?: string, attachments?: any[], from?: string): void;
20
20
  readFile(fileName: any): Promise<unknown>;
21
21
  readImage(fileName: any): Promise<unknown>;
22
22
  }
@@ -246,10 +246,10 @@ var SupportManager = /** @class */ (function () {
246
246
  data: data
247
247
  });
248
248
  };
249
- SupportManager.prototype.sendEmail = function (sendTo, subject, text, html, attachments) {
249
+ SupportManager.prototype.sendEmail = function (sendTo, subject, text, html, attachments, from) {
250
250
  this._mailer.sendMail({
251
251
  replyTo: undefined,
252
- from: this.serverConfig.MAIL_FROM,
252
+ from: from ? from : this.serverConfig.MAIL_FROM,
253
253
  to: sendTo,
254
254
  subject: subject,
255
255
  text: text,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "4.0.7",
3
+ "version": "4.0.8",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {