/sendeml-kt

Send raw EML files on Java

Primary LanguageKotlinMIT LicenseMIT

SendEML

A testing tool for sending raw eml files.

Usage

java -jar SendEML.jar <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.