@resolveio/server-lib 1.1.8 → 1.1.9

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.
@@ -21,7 +21,7 @@ export declare class MethodManager {
21
21
  callMethodInternal(method: any, ...methodData: any[]): Promise<any>;
22
22
  callSupportMethodInternal(supportMethod: any, ...methodData: any[]): Promise<any>;
23
23
  private sendWS;
24
- sendEmail(sendTo: string, subject: string, text?: string, html?: string, attachments?: any[]): void;
24
+ sendEmail(sendTo: string, subject: string, text?: string, html?: string, attachments?: any[], send_from?: string): void;
25
25
  getAWS(): aws.S3;
26
26
  readFile(fileName: any): Promise<{}>;
27
27
  readImage(fileName: any): Promise<{}>;
@@ -508,10 +508,10 @@ var MethodManager = /** @class */ (function () {
508
508
  data: data
509
509
  });
510
510
  };
511
- MethodManager.prototype.sendEmail = function (sendTo, subject, text, html, attachments) {
511
+ MethodManager.prototype.sendEmail = function (sendTo, subject, text, html, attachments, send_from) {
512
512
  this._mailer.sendMail({
513
513
  replyTo: undefined,
514
- from: this.serverConfig.MAIL_FROM,
514
+ from: send_from ? send_from : this.serverConfig.MAIL_FROM,
515
515
  to: sendTo,
516
516
  subject: subject,
517
517
  text: text,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {