* Set the replyToList from email body
(replyToList)
| 676 | * Set the replyToList from email body |
| 677 | */ |
| 678 | setReplyToList(replyToList) { |
| 679 | if (this._doArrayCheck('replyToList', replyToList) && replyToList.length) { |
| 680 | if (!replyToList.every(replyTo => replyTo && typeof replyTo.email === 'string')) { |
| 681 | throw new Error('Expected each replyTo to contain an `email` string'); |
| 682 | } |
| 683 | this.replyToList = replyToList; |
| 684 | } |
| 685 | } |
| 686 | } |
| 687 | |
| 688 | //Export class |