SendMail is a simple lightweight mail client. However it can be very useful when you need to send notifications in
automatic mode. Why? Because SendMail accepts command line parameters that define message properties (such as
recipient's address, subject, message, etc) and can be launched by other programs in response to some events.
E.g. Built-in HostMonitor utility may start SendMail when monitored host does not respond. It allows you to send
important notifications to network administrator or technician.
First, select Options menu item and provide information about your mail server(s):
Primary SMTP Server
Backup SMTP server
If you chose to use backup SMTP server then same parameters (as listed above) will be required for it too. When SendMail tries to send e-mail, first it uses Primary SMTP server. If due to some error first attempt fails, SendMail tries to send e-mail through Backup SMTP server.
Some optional parameters:
Close on disconnect, delay closing for [N] sec
If you enable this option, SendMail will wait for a specified interval of time and then terminate itself after successful or unsuccessful attempt to send mail. Of course you may press the [Close] button to close utility immediately or the [Stop] button to stop countdown.
Show window in the last stored position
With this option enabled utility will "remember" its position on screen and restore back to those coordinates when you start SendMail again.
BTW: You may save preconfigured (or partly configured) mail template using menu "Mail"->"Save as default". Every time
you start SendMail it will load stored template. Also you may open template at any time using menu "Mail"->Load
To send mail click "Send" button or use menu item "Mail"->"Send".
SendMail accepts command line parameters that define message properties (From, To, Subject, Text) and sends mail without human's interaction.
Format of the command line:
SendMail.exe [From=<address>] [To=<address>] [Subject=<SubjectText>] [Text=<FileName> | Body=<text>] [StartAfterLoad]
|- From||Specifies the email address of the sender.|
|- To||Defines a list of recipients for the mail. A copy of the message is sent to each of them. For more than one destination, addresses should be separated by semicolon (;)|
|- Subject||Specifies subject line of the mail message.|
|- Text||Tells SendMail to read message's text from specified file (you should use either "Text" or "Body" parameter, but not both)|
|- Body||Specifies message's text (you should use either "Text" or "Body" parameter, but not both)|
|- StartAfterLoad||Tells SendMail to connect to the mail server and send message right after startup. So, you don't need to click "Send" button.|