'@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);
์๋ ํ์ธ์ @agostonbonomi ,
์ง์๋๋ ์ด๋ฉ์ผ ํ์ ์ง์ ๋ฐฉ๋ฒ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค .
๋์์ด ๋๋์ง ์๋ ค์ฃผ์ธ์.
๊ฐ์ฌ!
๋ง์์ ๋ด์,
์๋จธ
@thinkingserious , ๊ฐ์ฌํฉ๋๋ค. ๋๋ ๋ฌธ์์์ ์ด๊ฒ์ ๋์ณค๊ณ ์ ์๋ํฉ๋๋ค :)
@agostonbonomi ํ๋ก์ฐ ๊ฐ์ฌํฉ๋๋ค!