MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / sendgridExample

Function sendgridExample

compute/sendgrid.js:23–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21sendgrid.setApiKey(process.env.SENDGRID_API_KEY || '<your-sendgrid-api-key>');
22
23async function sendgridExample() {
24 await sendgrid.send({
25 to: 'to_email@example.com',
26 from: 'from_email@example.com',
27 subject: 'Sendgrid test email from Node.js on Google Cloud Platform',
28 text: 'Well hello! This is a Sendgrid test email from Node.js on Google Cloud Platform.',
29 });
30}
31sendgridExample();
32// [END compute_sendgrid]

Callers 1

sendgrid.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected