์ค ๋ฐ๊ฟ์ด ์๋ ๋ฉ์์ง๋ฅผ ๋ณด๋ด๋ ค๊ณ ํ๋ฉด
"์๋ ํ์ธ์!
์ ์ง๋ด๊ณ ์๋์!?
๊ฑด๋ฐฐ!"
์ค๋ฅ ๋ฐ์!
๊ฐ์ ๋ฉ์์ง:
"์๋ ํ์ธ์! \n\n์๋ ํ์ธ์!?\n\n๊ฑด๋ฐฐ!"
๊ด์ฐฎ์์!
๊ณ ์น ์ ์์ต๋๊น!? ๊ฐ์ฌ ํด์!
์๋ ,
์ด๋ ๊ฒ ์ฝ๋์์ ์ค๋ฐ๊ฟ์ ์ค์ ํ๋ ค๊ณ ํฉ๋๊น?
{
from: "[email protected]",
to: "[email protected]",
subject: "test mail",
text: "Hello!
How are you!?
Cheers!"
}
JavaScript๋ ์ฌ๋ฌ ์ค ๋ฌธ์์ด์ ์ง์ํ์ง ์๊ธฐ ๋๋ฌธ์ ์๋ํ์ง ์์ต๋๋ค. \n ๊ธฐํธ๋ฅผ ์ฌ์ฉํด์ผ ํฉ๋๋ค.
{
from: "[email protected]",
to: "[email protected]",
subject: "test mail",
text: "Hello!\n\nHow are you!?\n\nCheers!"
}
์ค! :( ์, ๋ค์๊ณผ ๊ฐ์ html ํ์ผ์ ์ ๋ฌํ๋ ํ์์ ๋๋ค.
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body, p {
margin:0px;
padding: 0px;
}
</style>
</head>
<body>
<p>Olรก! Isso รฉ um teste!</p>
</body>
</html>
๊ทธ๋ฆฌ๊ณ ์ฌ๊ธฐ์:
{
from: "[email protected]",
to: "[email protected]",
subject: "test mail",
htmlFile: "myEmailMkt.html"
}
๊ฐ์ฌ ํด์!
๋๋ ์ด๊ฒ์ด Nodemailer ๋ฌธ์ ๋ผ๊ณ ์๊ฐํ์ง ์์ต๋๋ค. Nodemailer๋ ์ค ๋์ ์ ํ ๊ฑด๋๋ฆฌ์ง ์๊ธฐ ๋๋ฌธ์ ์ฝ๊ณ ์๋ ํ์ผ์ ์ ๋ ฅ์ ํ์ธํด์ผ ํฉ๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์๋ ,
์ด๋ ๊ฒ ์ฝ๋์์ ์ค๋ฐ๊ฟ์ ์ค์ ํ๋ ค๊ณ ํฉ๋๊น?
JavaScript๋ ์ฌ๋ฌ ์ค ๋ฌธ์์ด์ ์ง์ํ์ง ์๊ธฐ ๋๋ฌธ์ ์๋ํ์ง ์์ต๋๋ค. \n ๊ธฐํธ๋ฅผ ์ฌ์ฉํด์ผ ํฉ๋๋ค.