MCPcopy Create free account
hub / github.com/sendgrid/sendgrid-nodejs / setReplyToList

Method setReplyToList

packages/helpers/classes/mail.js:678–685  ·  view source on GitHub ↗

* Set the replyToList from email body

(replyToList)

Source from the content-addressed store, hash-verified

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

Callers 1

fromDataMethod · 0.95

Calls 1

_doArrayCheckMethod · 0.95

Tested by

no test coverage detected