-1
어디서나 명확한 답변을 찾을 수 없습니다. 나는 가져와야 할 전자 메일 주소로 가득 찬 데이터베이스를 가지고 있고 NodeJS의 Mandrill 전자 메일 메시지에 첨부합니다. 기본 메시지가 생성되어 한 명의 수신자에게 보낼 수 있습니다. 메시지에 1000 명의 수신자 목록을 첨부해야합니다. 여기에 내가 가진 것이있다. 그것은 Mandrill 문서의 예제에서 가져온 다음 수정되었습니다. 어디서 어떻게 목록을 포함합니까? 나는 to : property가 배열 인 것을 볼 수 있습니다. 객체의 배열 인 변수를 추가 한 다음, Mandrill로 보내주십시오. 당신의 도움을 주셔서 감사합니다!NodeJS에 Mandrill이있는 목록으로 전자 메일을 보내려면 어떻게합니까?
var message = {
"html": html,
"subject": "Subject",
"from_email": "[email protected]",
"from_name": "recipient",
"to": [{
"email": "[email protected]",
"name": "Recipient Name",
"type": "to"
},
{
"email": "[email protected]",
"name": "Pickle McGillicuddy",
"type": "to"
}],
"headers": {
"Reply-To": "[email protected]"
},
"important": false,
"track_opens": null,
"track_clicks": null,
"auto_text": null,
"auto_html": null,
"inline_css": null,
"url_strip_qs": null,
"preserve_recipients": null,
"view_content_link": null,
"bcc_address": "[email protected]",
"tracking_domain": null,
"signing_domain": null,
"return_path_domain": null,
"merge": true,
"global_merge_vars": [{
"name": "merge1",
"content": "merge1 content"
}],
"merge_vars": [{
"rcpt": "[email protected]",
"vars": [{
"name": "merge2",
"content": "merge2 content"
}]
}],
"tags": [
"password-resets"
]
};
우수! 이것에 대한 문서를 찾을 수 없었습니다. 내가 뭔가를 간과 한 것 같네요. 감사! – adamgedney