Sample: SMTP Mail Sender
Command line mail sending utility. Either accepts the sender, recipient, subject and body from the command line,
or loads the mail message from the supplied file. Supports SMTP authentication and displays the list of rejected
recipients, if any.
Usage
>
=====================================================================
SmtpSend.exe
=====================================================================
Sends e-mail from command line.
The program is a sample for Rebex Mail for .NET component.
For more info, see http://www.rebex.net/mail.net/
Syntax: SmtpSend.exe server[:port]
-from mail@domain
-to mail@domain[;mail2@domain2 [...]]
[-subject \"subject\"]
[-body \"text\"]
[-file file.eml]
[-username login]
[-password pass]
More info
The sample demonstrates:
- Creating MailMessage
- Loading MailMessage from disk
- Sending MailMessage
- Accessing the list of rejected recipients
- Authenticating to an SMTP server
See also: