/sendeml-rs

Send raw EML files with Rust

Primary LanguageRustMIT LicenseMIT

SendEML

A testing tool for sending raw eml files.

  • SendEML-rs runs on Windows, Linux and Other Platforms.

Building

cargo build --release

Install Rust

Usage

sendeml-rs <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.