How does CmdEmail work? |
|
CmdEmail support command line interface, you call the program through command line. Supposed you have configed the program, you can send email to somebody just use a dos command. e.g. sendmail -to:scott@tiger.com The e-mail address scott@tiger.com (if exists) will receive a mail sent from you. Certainly the mail does not contains useful content you specified. You need to specify the subject and mail body? The messae file includes two parts, header and body. There is a empty line between header and body. The following is an example: to:scott@tiger.com Save the text above to C:\temp_name.txt . Run CmdEmail again, e.g. sendmail -m:c:\temp_name.txt CmdEmail will read information from the message file, then send a mail to sott@tiger.com, copy to bill@microsoft.com . |
|
Download CmdEmail |
Thank you for using our product CmdEmail.
CmdEmail is command line e-mail component, it can be integrated into
your application developed by Oracle Form Builder, VC, VB, Perl etc.
System Requirement |
|
--Microsoft windows system --TCP/IP protocol installed |
|
Installation |
|
1) Download latest version from www.lv2000.com 2) Decompress installation pack to the folder where you want to install the application files. We suggest you to install CmdEmail to windows PATH so that it can be called from any current working directory. 3) Setup your default e-mail account settings. |
|
Uninstall CmdEmail |
|
CmdEmail is 'green' software, it will never change
the registry. If you do not need CmdEmail any more, please just remove the folder that contains CmdEmail. |
|
How to setup e-mail account settings. |
|
Run this command line: sendmail -setup The Settings dialog will appear.Please input the information given to you by your Internet Service Provider (ISP) or administrator. Your Name: Friendly name of the addresser. Note: Unless your ISP have indicated that your service uses Secure Password Authentication, do not select the "my outgoing server requires authentication" check box. |
|
Command Line Usage Guide |
|
Integrate CmdEmail into your applications |
|
CmdEmail support command line interface,
it can be integrated to your applications developed by Oracle Form Builder,
VC, VB, Perl etc If you are using VB/VC, you can
use WinExec() or CreateProgress() function to run CmdEmail. If you are
developing form, you can use HOST built-in to run CmdEmail. |
|
How to send short message with one single command line. |
|
Since CmdEmail version 2 , two new paramters is added to CmdEmail. -subject You can specify the subject and body by the two parameter. The following small program written in javascript show you how to create the command line: Example : ( 1, single line 2 multi-line 3 html )
|
|
How to pass many parameters to CmdEmail. |
|
CmdEmail receive parameters
from command line argument. The message file contains two parts: Header and Body Text, delimiter between header and body is one empty line. Header is composed by multi-line. format of each line: <parameter-name>:<value> Option parameter name: to: Specify the recipients The mail body can be multi-line text. |
|
Sample Codes | Sample code of sending mail via oracle forms This section explains how to send mail from oracle forms through CmdEmail. Sure, the form should be running on Windows box. --How to create message file. Please use
TEXT_IO to create the message file. We have created an example demonstrate how to use HOST procedure to run CmdEmail. Please download the form from http://www.lv2000.com/examples/testmail.fmb Sample code: DECLARE
|
Integrate CmdEmail into program written in VC (1): SECURITY_ATTRIBUTES g_sa = {sizeof(SECURITY_ATTRIBUTES),NULL,TRUE}; CString strTempPath; CString sCommand=_T("D:\\working\\sendmail20\\Release\\sendmail.exe"); CString strTempNameOutput; if(hFileOutput!= INVALID_HANDLE_VALUE ){ PROCESS_INFORMATION pi; } |
|
Integrate CmdEmail into program written in VC (2): SECURITY_ATTRIBUTES g_sa = {sizeof(SECURITY_ATTRIBUTES),NULL,TRUE}; CString strTempPath; CString sCommand=_T("D:\\working\\sendmail20\\Release\\sendmail.exe"); |
|
Copyright© 2003-2004 Lion Soft Inc, All Rights Reserved.