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

Method addTo

packages/helpers/classes/personalization.js:126–131  ·  view source on GitHub ↗

* Add a single to

(to)

Source from the content-addressed store, hash-verified

124 * Add a single to
125 */
126 addTo(to) {
127 if (typeof to === 'undefined') {
128 return;
129 }
130 this.to.push(EmailAddress.create(to));
131 }
132
133 /**
134 * Set cc

Callers

nothing calls this directly

Calls 2

pushMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected