MCPcopy Index your code
hub / github.com/sendgrid/sendgrid-nodejs / setReplyTo

Method setReplyTo

packages/helpers/classes/mail.js:133–140  ·  view source on GitHub ↗

* Set reply to

(replyTo)

Source from the content-addressed store, hash-verified

131 * Set reply to
132 */
133 setReplyTo(replyTo) {
134 if (this._checkProperty('replyTo', replyTo, [this._checkUndefined])) {
135 if (typeof replyTo !== 'string' && typeof replyTo.email !== 'string') {
136 throw new Error('String or address object expected for `replyTo`');
137 }
138 this.replyTo = EmailAddress.create(replyTo);
139 }
140 }
141
142 /**
143 * Set subject

Callers 1

fromDataMethod · 0.95

Calls 2

_checkPropertyMethod · 0.95
createMethod · 0.45

Tested by

no test coverage detected