Sendgrid-nodejs: To ํ•„๋“œ๋Š” ์ผ๋ฐ˜ ์ด๋ฉ”์ผ๋งŒ ํ—ˆ์šฉํ•ฉ๋‹ˆ๋‹ค.

์— ๋งŒ๋“  2019๋…„ 03์›” 13์ผ  ยท  3์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: sendgrid/sendgrid-nodejs

๋ฌธ์ œ ์š”์•ฝ

'@sendgrid/mail'์„ ์‚ฌ์šฉํ•˜์—ฌ ์ด๋ฉ”์ผ์„ ๋ณด๋‚ผ ๋•Œ '๋ฐ›๋Š” ์‚ฌ๋žŒ' ํ•„๋“œ๋Š” ์ด๋ฆ„/์ด๋ฉ”์ผ ํ˜•์‹์ด ์•„๋‹Œ ์ผ๋ฐ˜ ์ด๋ฉ”์ผ ์ฃผ์†Œ๋งŒ ํ—ˆ์šฉํ•ฉ๋‹ˆ๋‹ค(์˜ˆ: {name:'John Doe', email:'[email protected]'} ).

๋ฒˆ์‹ ๋‹จ๊ณ„

const sgMail = require('@sendgrid/mail');
sgMail.setApiKey(process.env.SENDGRID_API_KEY);
const msg = {
  to: { email:'[email protected]', name: 'John Doe' },
  from: '[email protected]',
  subject: 'Sending with SendGrid is Fun',
  text: 'and easy to do anywhere, even with Node.js',
  html: '<strong>and easy to do anywhere, even with Node.js</strong>',
};
sgMail.send(msg);

๊ธฐ์ˆ ์  ์„ธ๋ถ€ ์‚ฌํ•ญ:

  • sendgrid-nodejs ๋ฒ„์ „: ๋งˆ์Šคํ„ฐ(์ตœ์‹  ์ปค๋ฐ‹: [์ปค๋ฐ‹ ๋ฒˆํ˜ธ])
  • Node.js ๋ฒ„์ „: 4.1.2
unknown or a waiting for feedback question

๋ชจ๋“  3 ๋Œ“๊ธ€

์•ˆ๋…•ํ•˜์„ธ์š” @agostonbonomi ,

์ง€์›๋˜๋Š” ์ด๋ฉ”์ผ ํ˜•์‹ ์ง€์ • ๋ฐฉ๋ฒ•์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค .

๋„์›€์ด ๋˜๋Š”์ง€ ์•Œ๋ ค์ฃผ์„ธ์š”.

๊ฐ์‚ฌ!

๋งˆ์Œ์„ ๋‹ด์•„,

์—˜๋จธ

@thinkingserious , ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค. ๋‚˜๋Š” ๋ฌธ์„œ์—์„œ ์ด๊ฒƒ์„ ๋†“์ณค๊ณ  ์ž˜ ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค :)

@agostonbonomi ํŒ”๋กœ์šฐ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค!

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰