Rebex

Skip to content, Skip to navigation




Sample: Simple SMTP Mail Sender

Very simple command line mail sending utility. Accepts sender, recipient, subject and body from the command line.

Usage

=====================================================================
 SmtpSimpleSend.exe
=====================================================================

Sends simple e-mail from the command line.

The program is a sample for Rebex Mail for .NET component.
For more info, see http://www.rebex.net/mail.net/


Syntax: SmtpSimpleSend.exe server[:port]
        [-from mail@domain]
        [-to mail@domain;mail2@domain2]
        [-subject "subject"]
        [-body "text"]

More info

The sample demonstrates:

  • Sending mail in a single line of code.

See also: