Send raw EML files on Deno

SendEML

A testing tool for sending raw eml files.

Usage

deno run --allow-read --allow-net sendeml.ts <setting_file> ...

Setting File (JSON format)

{
    "smtpHost": "172.16.3.151",
    "smtpPort": 25,
    "fromAddress": "a001@ah62.example.jp",
    "toAddresses": [
        "a001@ah62.example.jp",
        "a002@ah62.example.jp",
        "a003@ah62.example.jp"
    ],
    "emlFiles": [
        "test1.eml",
        "test2.eml",
        "test3.eml"
    ],
    "updateDate": true,
    "updateMessageId": true,
    "useParallel": false
}

Options

  • updateDate (default: true)

    • Replace “Date:” line with the current date and time.
  • updateMessageId (default: true)

    • Replace “Message-ID:” line with a new random string ID.
  • useParallel (default: false)

    • Enable parallel processing for eml files.

Download Details:

Author: ykon

Source Code: https://github.com/ykon/sendeml-ts

#deno #node #nodejs #javascript

Send raw EML files on Deno
1.90 GEEK