次のマルチパートコンテンツタイプを試しました。SheetJSを使用して、後で Excel ファイルを添付します。しかし、現在、有効な空白の Excel ファイルを添付できません。どんな助けでも大歓迎です。
let text =
'To: User <user@domain.demo>\n' +
'Subject: TW Order\n' +
'X-Unsent: 1\n' +
'Content-Type: multipart/mixed; boundary=--boundary_text_string\n\n' +
'----boundary_text_string\n' +
//'Content-Type: application/application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; name=demo.xlsx\n' +
'Content-Type: application/octet-stream; name=demo.xlsx\n' +
'Content-Disposition: attachment;\n\n' +
'----boundary_text_string--';