DOSPrinter.SMTP.exe documentation
This zip package contains:
- readme.html - this file
- DOSPrinter.SMTP.exe - mail sender
program
- DOSPrinter.ini - configuration file
DOSPrinter.SMTP.exe usage
DOSPrinter.SMTP.exe is a plugin program for DOSPrinter for sending email directly to the mail server via SMTP protocol.
If you intend to use /SMTP or /SMUI switches with DOSPrinter, you need to copy DOSPrinter.SMTP.exe and DOSPrinter.ini files in the DOSPrinter working folder.
Note: working (current) folder may not be the same folder
where DOSPrinter.exe is placed.
And that's it. DOSPrinter.exe will call DOSPrinter.SMTP.exe automatically.
The reason why DOSPrinter.SMTP.exe is not linked inside DOSPrinter.exe is that 90% of DOSPrinter users will never use /SMTP or /SMUI features, so the significant increase of DOSPrinter.exe file size would be unnecessary for those 90% of users.
DOSPrinter.SMTP.exe can be also used as a standalone program!
In that case the command line usage is DOSPrinter.SMTP.exe isUI To Subject Files
Where arguments are:
isUI can be value 0 or 1. 1 means that the user interface must be shown. 0 will send the email without any user intervention.
To is recepient address. Specify more addresses by separating them with the comma sign.
Subject is the message subject.
Files is the path to the file to attach with the message. Specify more files by separating them with the comma sign.
Note that arguments are separated with the spaces. If any argument contains spaces (subject for example), enclose it in doublequotes. All arguments are optional.
Example 1:
DOSPrinter.SMTP.exe 0 bojan.banko@pu.htnet.hr,some@myaddress.com "Testing mail sender"
will send the message to two addresses. Subject is "Testing mail sender". There is no attachment specified. The first argument "0" is telling that it will run without UI.
Example 2:
DOSPrinter.SMTP.exe 1 "" "" "c:\temp\rose.jpg"
will open the "eMail Sender" dialog with the attachment specified. To address and subject are empty. You can always type it manually, or put it in DOSPrinter.ini file.
DOSPrinter.ini settings
DOSPrinter.ini is a configuration file for DOSPrinter when used with /SMTP or /SMUI options. You can edit it with Notepad, or with DOSPrinter.SMTP.exe, by pressing the "Configuration" button.
Options are:
Host is the name or IP addres of the mail server.
Port is the port on the server on which DOSPrinter.SMTP.exe will connect. Default is 25.
Name is the friendly name of the message sender.
Address is the email addres of the message sender.
Authenticate is the method for the authentication to the server. Values are: 0=no login, 2=login, 3=login plain.
PasswordPlain password for the case when authentication is needed. It is in plain text form, so you can type it using Notepad.
PasswordCrypted again the password, but this time in encrypted form. It is editable thru DOSPrinter.SMTP.exe only.
Autodial can be 0 or 1. 0 presumes that you are already connected to the server. 1 will bring dialup if needed.
BoundIP is the senders local IP address to which the socket is bind. Leave it empty if not sure what that is.
EncodingFriendly is the name of the text encoding standard. Default is "Western European (ISO)"
EncodingCharset is the type of the text encoding standard. Default is "iso-8859-1"
Mime can be 0 or 1. If 1, message is encoded in MIME.
HTML can be 0 or 1. If 1, message is encoded in HTML.
Priority can be one of: 0=none, 1=low, 2=normal, 3=high.
To is the recepient address. Separate more addresses with the comma.
CC is carbon copy recepient address(es).
BCC is blind carbon copy recepient address(es).
Attach is the path to the file to attach. Separate multiple files with the comma.
Subject is the message subject.
BodyFile is path to a textual template file containing the message body.
DOSPrinter.SMTP.exe is built on PJ Naughter's freeware CPJNSMTPConnection class.
DOSPrinter.SMTP.exe is freeware (even if it is part of a commercial product) for your personal and/or commercial use. The only limitation is that you are not allowed to send unsolicited bulk mail with DOSPrinter.SMTP.exe.
DOSPrinter.SMTP.exe is provided 'as-is', without any express or implied warranty. In no event will the author be held liable for any damages arising from the use of this software.
If used separately from DOSPrinter.exe, give credits to the author.
DOSPrinter.SMTP.exe is part of DOSPrinter Copyright 2005 (c) Alternet software.