Mail EDI “e-Express” (Ver8.4)
Mail Handler “Mail Connect” (Ver4.4)

OPERATION MANUALNIHON Software Engineering, Co. Ltd.

Internet EDI Pro “e-Express”

Contents
1.

Selection of Jobs ...........................................................................................................................2

2.

Sending Process ............................................................................................................................3<Three Ways of Sending Methods>..............................................................................................3<Sending Process>........................................................................................................................5<Free Sending Method> ...............................................................................................................6<In case of sending a mail to person in charge of receiver> .........................................................7
Sending automatically the message that has been registered beforehand………………….7
Allowing the user to create any message and send to person in charge……………………8< Allowing the user to create any message and send to EDI-mail address >.............................. 11(only MailConnect)

3.

Query of Sending Log .................................................................................................................13

4.

Reading of Received Data ..........................................................................................................14

5.

Query of Receiving Log..............................................................................................................15

6.

Starting-up Method from Other Programs (e-Express) ...............................................................16<Sending Process>......................................................................................................................16
Return Value List of Sending Process ...................................................................................17<Receiving Process> ..................................................................................................................18
Return Value List of Receiving Process ................................................................................19<Displaying Process of Menu Screen> .......................................................................................19<Displaying Process of Sending Log> .......................................................................................19<Displaying Process of Receiving Log> ....................................................................................19<Displaying Process of System Log> .........................................................................................19
Sample Coding............................................................................................................................20

7.

Starting-up Method from Other Programs (MailConnect) ..........................................................21<Sending Process>......................................................................................................................21
Return Value List of Sending Process ...................................................................................22<Receiving Process> ..................................................................................................................23
Return Value List of Receiving Process ................................................................................24<Displaying Process of Menu Screen> .......................................................................................24<Displaying Process of Sending Log> .......................................................................................24<Displaying Process of Receiving Log> ....................................................................................24<Displaying Process of System Log> .........................................................................................24
Sample Coding………………………………………………………………………………….25

1

NIHON Software Engineering, Co. Ltd.

Internet EDI Pro “e-Express”

1.

Selection of Jobs
When multiple jobs exist, the following screen is displayed.
Select a job.
If there is only one job, the following screen is not displayed.

2

NIHON Software Engineering, Co. Ltd.

Internet EDI Pro “e-Express”

2.

Sending Process<Three Ways of Sending Methods>
There are three ways of sending. For the setup method, refer to the Setup Manual.
(1) Defining destination for each sending folder:

C:\Sending\Osakaoosaka@ABC.co.jp

C:\Sending\Sendai

sendai@ABC.co.jp

All the files in the sending folder are sent to the destination.
This method requires the same number of folders as the number of destinations.
If the sending folder has sub-folders.
e-Express: All the files in the sub-folders are sent together with these folders.
(All the files under the sub-folders are sent.)
MailConnect: All the files in the sub-folders are attached together.(this level only)(2) Sending to all the destinations from one sending folder:
For the files in the folder specified as “Defining destination by the file name” in settingof sending environment, their destination is determined by the file name.
1. Way of attaching customer code to file name.
The letters from the top of the file name to the first underscore (_) are regarded as thecustomer code.
(Example) An order sheet for customer code AB0001
AB0001_chuumon_00120465.dat
The EDI mail address of the destination is retrieved from the customer codes registered in
the address book and is used for sending.
Customer code: AB0001
C:\Sending
Customer code: AB0002
Customer code: AB0003

3NIHON Software Engineering, Co. Ltd.

Internet EDI Pro “e-Express”

2. Way of attaching mail address to file name.
Attach mail address with parenthesis to file name.
(Example) (aaaaa@bbbb.com)chuumon_00120465.dat
This mail address should be registered in AddressBook.
If this folder has sub-folders, these sub-folders are sent with the files within them according
to the above naming rule.
(All the files under the sub-folders are sent.)(3) Free sending to the destination by manual operation (Free sending):
Select the sending file and the destination manually.
The sending file is specified in the file selection dialog window. The destination forsending is specified in the Address Book dialog window.
Setting of the sending folder is not required.
When a folder is selected in the file selection dialog window, all the files in that folder aresent together with the folder.
(All the files under the sub-folders are sent.)

Note 1: It is possible to combine any of the above three ways.

4

NIHON Software Engineering, Co. Ltd.

Internet EDI Pro “e-Express”<Sending Process>Free Send:

Send selected files to any destination.

Send All:

Send all the data in the sending folder.

Timer Set:

Send all the data at the specified time.
If the “Every Day” check box is checked, sending is executed every day at the

specified time.
Resident Type : The sending task stays resident. The sending folder is scanned at every
specified “n” minute, if data was found, and the data will be sent.
If you want to set RealTime Watching Mode please set 0.
When data is put into the sending folder, Promptly Send operation will be
executed.

 Clicking (selecting) a sending folder displays the files in it.
 Double-clicking a sending folder starts up the Explorer program with the folder opened.
 Double-clicking a file name opens the file.

Timer Setting

5

Resident Type Setting

NIHON Software Engineering, Co. Ltd.

Internet EDI Pro “e-Express”<Free Sending Method>

Select destination address in
the Address Book.

Select attached files in the File dialog.
You can also send folders. (Sub-folders
below are also sent.)

The previous messages
that you have sent arescrolled.

Checking the "Send mail to person in charge of receiver" check box sends the same message tothe person in charge of receiver in the Address Book.
 If multiple persons are registered, the message will be sent to all of them.
 Attached files are not sent.

6

NIHON Software Engineering, Co. Ltd.

Internet EDI Pro “e-Express”<In case of sending a mail to person in charge of receiver>(1) Sending automatically the message that has been registered beforehand<Setting in the sending environment>
Select Environment, Send Environment, and Set Sending Folder in the menu.
Mail to person in charge of receiver: "Y"
Edit the message. (Editing is allowed for each folder.)Note: Refer to the Setup Manual.
 The message will be sent automatically in sending.
 The message will be sent to the person in charge of receiver in the Address Book.


If multiple persons are registered, the message will be sent to all of them.



If person in charge of receiver in the Address Book is Null, no data is send.

 Attached files are not accepted.

7

NIHON Software Engineering, Co. Ltd.

Internet EDI Pro “e-Express”(2) Allowing the user to create any message and send to person in charge
Store the following file in the sending folder and start sending process.
The file name starting with “EDI_PRO_MAIL_” is recognized as a mail to the person in chargeof the receiver.
File name:

EDI_PRO_MAIL_XXXXXXXXX.txt
No case-sensitivity
Any letters for XXXXXXXXX

In case of a folder which is specified as determined by the file name:(ALL is specified in the EDI mail address.) The following file name is used.
NNNNN_EDI_PRO_MAIL_XXXXXXXXX.txt
NNNNN is customer code.
No case-sensitivity
Any letters for XXXXXXXXXFormat:Text format

Format:<Subject>
Required. Only one line is accepted.
<Body>
Required.
<Attachment>
Specify attached files in full path format.
Enter this field as required.
Specify files as many as you want to attach.
Always insert a line break between two file names.
If you want delete file after send operation, attach /D.
<example>C:¥temp¥testdata.dat/D

This is not case-sensitive.

8

NIHON Software Engineering, Co. Ltd.

Internet EDI Pro “e-Express”

If you want to send mail to any desitinations.
Usually mail will be sent according to “Person in charge Mail Address” of Address Book.
If you want to send mail to another desitinations.
Specify to-address by <To> before <Subject>.
Format:<To>
Specify to-address.
Specify to-address as many as you want to send.
Always insert a line break between two address.
<From>
Usually you need not specify this, because mail address of
BasicEnvironment is used for from tag.Specify only when you
want to set another from address.
<Cc>
Specify Cc. insert a line break between two address.
<Bcc>
Specify Bcc. insert a line break between two address.
<Reply-To>
This setting precedes Basic Environment setting.
Only one line is accepted.
<Subject>
Required. Only one line is accepted.
<Body>
Required.
<Attachment>
Specify attached files in full path format.
Enter this field as required.
Specify files as many as you want to attach.
Always insert a line break between two file names.
If you want delete file after send operation, attach /D.
<example>C:¥temp¥testdata.dat/D

This is not case-sensitive.

9

NIHON Software Engineering, Co. Ltd.

Internet EDI Pro “e-Express”

SampleFile name: EDI_PRO_MAIL_ADC010_124-09268.txt<Standard><Subject>Your bill<Body>
Here is the bill for you:Bill number: 124-09268
Yours sincerely,<With attached file><Subject>Your bill<Body>
Here is the bill for you:Bill number: 124-09268
Yours sincerely,<attachment>
C:\temp\file01.dat/D

These files will be deleted
after send operation.

C:\temp\file02.dat/D<Any destination you want><To>
aaa@abc.com
bbb@xyz.com<Subject>Your bill<Body>
Here is the bill for you:Bill number: 124-09268
Yours sincerely,

10

NIHON Software Engineering, Co. Ltd.

Internet EDI Pro “e-Express”<Allowing the user to create any message and send to EDI-mail address>(only MailConnect)
Store the following file in the sending folder and start sending process.
The file name starting with “EDI_PRO_DATA_” is recognized as a mail to the person in chargeof the receiver.
File name:

EDI_PRO_DATA_XXXXXXXXX.txt
No case-sensitivity
Any letters for XXXXXXXXX

In case of a folder which is specified as determined by the file name:(ALL is specified in the EDI mail address.) The following file name is used.
NNNNN_EDI_PRO_DATA_XXXXXXXXX.txt
NNNNN is customer code.
No case-sensitivity
Any letters for XXXXXXXXXFormat:Text format

Format:<Subject>
Required. Only one line is accepted.
<Body>
Required.
<Attachment>
Specify attached files in full path format.
Enter this field as required.
Specify files as many as you want to attach.
Always insert a line break between two file names.
If you want delete file after send operation, attach /D.
<example>C:¥temp¥testdata.dat/D

This is not case-sensitive.

11

NIHON Software Engineering, Co. Ltd.

Internet EDI Pro “e-Express”

If you want to send mail to any desitinations.
Usually mail will be sent according to “EDI Mail Address” of Address Book.
If you want to send mail to another desitinations.
Specify to-address by <To> before <Subject>.
Format:<To>
Specify to-address.
Specify to-address as many as you want to send.
Always insert a line break between two address.
<Return-Path>
Usually you need not specify this, because mail address of
BasicEnvironment is used for return-path tag.Specify only
when you want to set another return-path address.
MailAddress UserID Password (delimited by space)
If your mailserver has not SMTPAuth UserID and Password are not needed.
"Pop before SMTP" is not supported.
<From>
Usually you need not specify this, because mail address of
BasicEnvironment is used for from tag.Specify only when you
want to set another from address.
<Cc>
Specify Cc. insert a line break between two address.
<Bcc>
Specify Bcc. insert a line break between two address.
<Reply-To>
This setting precedes Basic Environment setting.
Only one line is accepted.
<Subject>
Required. Only one line is accepted.
<Body>
Required.
<Attachment>
Specify attached files in full path format.
Enter this field as required.
Specify files as many as you want to attach.
Always insert a line break between two file names.
If you want delete file after send operation, attach /D.
<example>C:¥temp¥testdata.dat/D

This is not case-sensitive.
Sample:Please see the sample of “(2) Allowing the user to create any message and send to person
in charge”

12

NIHON Software Engineering, Co. Ltd.

Internet EDI Pro “e-Express”

3.

Query of Sending Log
Sending records are stored in the sending log file.
The log file can be queried in the following format:

 Selecting a date displays the log of that day.
 It is possible to selectively display Normal data, Error data, and Waiting Ack Exchange data.
 Pressing Get Ack Exchange button reads ACK messages received from the sender that are
not processed.
 Double-clicking sending log data displays its details.
 Using Browse button for back-up files allows you to use the Explorer program to checkthose files.

13

NIHON Software Engineering, Co. Ltd.

Internet EDI Pro “e-Express”

4.

Reading of Received Data
Read Data :Reads received data and stores it in the receiving folder.

Delete All Files and Read Data : Deletes all of the data in the receiving folder, reads received
Timer Set :data and stores it in the receiving folder.
Reads all the received data at the specified time.
If the “Every Day” check box is checked, receiving is executed every day at

the specified time.
Resident Type : The receiving task stays resident and reads received data at every specified “n”
minute.
If the interval is set to be short, this increases the load of query to the mailserver. Thus, it is favorable to set longer interval as much as possible.
When receive mail server type is IMAP4, RealTime Watching Mode isavailable. Set 0 to interval. value
When data is received into the receive mail server , Promptly receive operation
will be executed.

Timer Start-up Setting

14

Resident Type Setting

NIHON Software Engineering, Co. Ltd.

Internet EDI Pro “e-Express”

5.

Query of Receiving Log
Receiving records are stored in the receiving log file.
The log file can be queried in the following format:

 Selecting a date displays the log of that day.
 It is possible to selectively display Normal data or Error data.
 Checking Subject check box displays the subjects of mails in the Receive Folder field.
 Double-clicking receiving log data displays its details.

 Using Browse button for back-up files allows you to use the Explorer program to checkthose files.
 Checking Mail Header, Subject/Body, or e-Express Invoice radio buttons display thecontents of selected data.

15

NIHON Software Engineering, Co. Ltd.

Internet EDI Pro “e-Express”

6.

Starting-up Method from Other Programs (e-Express)“E-Express” can be started-up from other application programs.
In this case, the screen will be displayed at the minimum size.
The command format is as follows:<Sending Process>Path name\EDI_Send.exe jobnnnn/option

jobnnnn: Can be omitted. When this is omitted, it is regarded as “job0001.”
Option: lower-case letters are OK.
When omitted:

Sending process menu screen is displayed.

/S

Starts-up sending process.
If “e-Express” has been started-up with “/S”
option, the return values of the process are set.
For details, see the return value list of the process.

/Tyyyymmddhhnn

Starts-up timer setting
yyyy: Year

(Fixed to 4 digits.) *1

mm: Month (Fixed to 2 digits.) *1
dd: Day(Fixed to 2 digits.) *1

hh: Hour(Fixed to 2 digits.)

nn: Minute (Fixed to 2 digits.)/Dyyyymmddhhnn

Starts-up timer setting.
(Starts-up at the same time ever day thereafter.)yyyy: Year

(Fixed to 4 digits.) *1

mm: Month (Fixed to 2 digits.) *1
dd: Day(Fixed to 2 digits.)

hh: Hour(Fixed to 2 digits.)

nn: Minute (Fixed to 2 digits.)/Inn

Starts-up resident type setting.
nn: Starts up in every “nn” minute.
(Any number of digits is acceptable.)(In case of 0, RealTime Watching Mode is set.)*1 If “00000000” is set in “yyyymmdd” part, it indicates that the time is specified without
specifying date. (“e-Express” is started-up at the specified time.)
Note 1: If the options are incorrectly specified, the sending process menu screen is displayed.

16

NIHON Software Engineering, Co. Ltd.

Internet EDI Pro “e-Express”

Return Value List of Sending Process
ReturnValue

Status0Normal exit

201

Can’t access the mail server.

Causes The name of sending mail server(SMTP) is not correct.
 The sending mail server is notoperating.

1901

Can’t compress it.

 The CPU resources (memory anddisk space) are not enough.

1902

Can’t encrypt it.

 The CPU resources (memory anddisk space) are not enough.

1903

Can’t create an invoice file of“e-Express.”

 The CPU resources (memory anddisk space) are not enough.

1904

Can’t send the mail by the file name.  The customer code in the address
book does not correspond to the file
name.

1905

Can’t send the mail to the person in
charge of the receiver.

 The customer code in the address
book does not correspond to the file
name.

1906

Can’t send the mail to the person in
charge of the receiver.

The sending file has an error.
 It is not in a text file format.
 It has no subject.
 It has no body.

When “e-Express” has been started-up with /S option, return values of the above process areset.
If “e-Express” has been started-up with other options, no return values are set.
This function is effective when “e-Express” has been started-up from parent process and is
waiting for termination of that process.
See the coding samples.
Detailed conditions are recorded in the system log.

17

NIHON Software Engineering, Co. Ltd.

Internet EDI Pro “e-Express”<Receiving Process>Path name\EDI_Receive.exe jobnnnn/option

jobnnnn: Can be omitted.

When this is omitted, it is regarded as “job0001.”

Option: lower-case letters are OK.
When omitted:

Receiving process menu screen is displayed.

/R

Reads received data.

/C

Deletes all the data and reads received data.
If “e-Express” has been started-up with /R or /C
option, the return values of the process are set.
For details, see the return value list of process.

/Tyyyymmddhhnn

Starts-up timer setting
yyyy: Year

(Fixed to 4 digits.) *2

mm: Month (Fixed to 2 digits.) *2
dd: Day(Fixed to 2 digits.)

hh: Hour(Fixed to 2 digits.)

nn: Minute (Fixed to 2 digits.)/Dyyyymmddhhnn

Starts-up timer setting.
(Starts-up at the same time ever day thereafter.)yyyy: Year

(Fixed to 4 digits.) *2

mm: Month (Fixed to 2 digits.) *2
dd: Day(Fixed to 2 digits.) *2

hh: Hour(Fixed to 2 digits.)

nn: Minute (Fixed to 2 digits.)/Inn

Starts-up resident type setting.
nn: Starts up in every “nn” minute.
(Any number of digits is acceptable.)(In case of 0, RealTime Watching Mode is set.)*2 If “00000000” is set in “yyyymmdd” part, it indicates that the time is specified without
specifying date. (“e-Express” is started-up at the specified time.)
Note: If the options are incorrectly specified, the receiving process menu screen is displayed.

18

NIHON Software Engineering, Co. Ltd.

Internet EDI Pro “e-Express”

Return Value List of Receiving Process
Return
Value
0
0301

Status

CausesNormal exitCan’t receive data.

The receiving mail address isincorrect.

 The password is incorrect.
(It is case-sensitive.) The mail server name is incorrect.
 The mail server is not operating.
2901

 The CPU resources (memory anddisk space) are not enough.

Can’t read the invoice of“e-Express.”

When “e-Express” has been started-up with /R or /C option, the return values of the above
process are set.
If “e-Express” has been started-up with other options, no return values are set.
This function is effective when “e-Express” has been started-up from a parent process and is
waiting for termination of that process.
If automatic start-up of a business application program has been set, “e-Express” also waits fortermination of that process.
See the coding samples.
Detailed conditions are recorded in the system log.

<Displaying Process of Menu Screen>

Path name\EDI_Pro.exe jobnnnn

jobnnnn: Can be omitted. When this is omitted, it is regarded as “job0001.”<Displaying Process of Sending Log>

Path name\EDI_Send_Log.exe jobnnnn/P

jobnnnn: Can be omitted. When this is omitted, it is regarded as “job0001.”<Displaying Process of Receiving Log>

Path name\EDI_Receive_Log.exe jobnnnn/P

jobnnnn: Can be omitted. When this is omitted, it is regarded as “job0001.”<Displaying Process of System Log>

Path name\EDI_System_Log.exe jobnnnn/P

jobnnnn: Can be omitted. When this is omitted, it is regarded as “job0001.”

19

NIHON Software Engineering, Co. Ltd.

Internet EDI Pro “e-Express”

Sample Coding<Visual Basic><In case of starting-up “e-Express”, and operating it asynchronously with parent process.>
Dim RetVal
RetVal = Shell _("C:\Program Files\Internet_EDI_Pro\Program\edi_send.exe Job0001/S ", 1)<In case of starting-up “e-Express”, waiting for its termination, and obtaining returned values.>
Dim WSH, i
Set WSH = CreateObject("WScript.Shell")i = WSH.Run("""C:\Program Files\Internet_EDI_Pro\PROGRAM\EDI_send.exe"" /S",
1, True)
Note: Check the following library files in the Reference Setting window of Visual Basic.
1.

Microsoft scripting runtime

2.

Windows Script Host Object Model<Visual C++><In case of starting-up “e-Express”, and operating it asynchronously with parent process.>
HINSTANCE iret =ShellExecute(m_hWnd,"open","C:\\Program Files\\Internet_EDI_Pro\\Program\\edi_send.exe","Job0001/S",NULL,SW_SHOW);<In case of starting-up “e-Express”, waiting for its termination, and obtaining returned values.>#include <process.h>
int i = _spawnl( _P_WAIT,"C:\\Program Files\\Internet_EDI_Pro\\Program\\edi_send.exe","edi_send.exe","/S",NULL );20

NIHON Software Engineering, Co. Ltd.

Internet EDI Pro “e-Express”

7.

Starting-up Method from Other Programs (MailConnect)“MailConnect” can be started-up from other application programs.
In this case, the screen will be displayed at the minimum size.
(Note) Job No is allocated automatically mcj0001,mcj0002,mcj0003….
The command format is as follows:<Sending Process>Path name\EDI_Send_MailConnect.exe mcjnnnn/option

mcjnnnn: Can be omitted. When this is omitted, it is regarded as “mcj0001.”
Option: lower-case letters are OK.
When omitted:

Sending process menu screen is displayed.

/S

Starts-up sending process.
If “MailConnect” has been started-up with “/S”
option, the return values of the process are set.
For details, see the return value list of the process.

/Tyyyymmddhhnn

Starts-up timer setting
yyyy: Year

(Fixed to 4 digits.) *1

mm: Month (Fixed to 2 digits.) *1
dd: Day(Fixed to 2 digits.) *1

hh: Hour(Fixed to 2 digits.)

nn: Minute (Fixed to 2 digits.)/Dyyyymmddhhnn

Starts-up timer setting.
(Starts-up at the same time ever day thereafter.)yyyy: Year

(Fixed to 4 digits.) *1

mm: Month (Fixed to 2 digits.) *1
dd: Day(Fixed to 2 digits.)

hh: Hour(Fixed to 2 digits.)

nn: Minute (Fixed to 2 digits.)/Inn

Starts-up resident type setting.
nn: Starts up in every “nn” minute.
(Any number of digits is acceptable.)(In case of 0, RealTime Watching Mode is set.)*1 If “00000000” is set in “yyyymmdd” part, it indicates that the time is specified without
specifying date. (“MailConnect” is started-up at the specified time.)
Note 1: If the options are incorrectly specified, the sending process menu screen is displayed.

21

NIHON Software Engineering, Co. Ltd.

Internet EDI Pro “e-Express”

Return Value List of Sending Process
ReturnValue

Status0Normal exit

201

Can’t access the mail server.

Causes The name of sending mail server(SMTP) is not correct.
 The sending mail server is notoperating.

1901

Can’t compress it.
(only e-Express)

 The CPU resources (memory anddisk space) are not enough.

(only e-Express)

 The CPU resources (memory anddisk space) are not enough.

1903

Can’t create an invoice file of“e-Express.” (only e-Express)

 The CPU resources (memory anddisk space) are not enough.

1904

Can’t send the mail by the file name.  The customer code in the address
book does not correspond to the file
name.

1905

Can’t send the mail to the person in
charge of the receiver.

 The customer code in the address
book does not correspond to the file
name.

1906

Can’t send the mail to the person in
charge of the receiver.

The sending file has an error.

1902

Can’t encrypt it.

 It is not in a text file format.
 It has no subject.
 It has no body.

When “MailConnect” has been started-up with /S option, return values of the above process areset.
If “MailConnect” has been started-up with other options, no return values are set.
This function is effective when “MailConnect” has been started-up from parent process and is
waiting for termination of that process.
See the coding samples.
Detailed conditions are recorded in the system log.

22

NIHON Software Engineering, Co. Ltd.

Internet EDI Pro “e-Express”<Receiving Process>Path name\EDI_Receive_MailConnect.exe mcjnnnn/option

mcjnnnn: Can be omitted.

When this is omitted, it is regarded as “mcj0001.”

Option: lower-case letters are OK.
When omitted:

Receiving process menu screen is displayed.

/R

Reads received data.

/C

Deletes all the data and reads received data.
If “MailConnect” has been started-up with /R or/C option, the return values of the process are set.
For details, see the return value list of process.

/Tyyyymmddhhnn

Starts-up timer setting
yyyy: Year

(Fixed to 4 digits.) *2

mm: Month (Fixed to 2 digits.) *2
dd: Day(Fixed to 2 digits.)

hh: Hour(Fixed to 2 digits.)

nn: Minute (Fixed to 2 digits.)/Dyyyymmddhhnn

Starts-up timer setting.
(Starts-up at the same time ever day thereafter.)yyyy: Year

(Fixed to 4 digits.) *2

mm: Month (Fixed to 2 digits.) *2
dd: Day(Fixed to 2 digits.) *2

hh: Hour(Fixed to 2 digits.)

nn: Minute (Fixed to 2 digits.)/Inn

Starts-up resident type setting.
nn: Starts up in every “nn” minute.
(Any number of digits is acceptable.)(In case of 0, RealTime Watching Mode is set.
only IMAP4 Protocol)*2 If “00000000” is set in “yyyymmdd” part, it indicates that the time is specified without
specifying date. (“MailConnect” is started-up at the specified time.)
Note: If the options are incorrectly specified, the receiving process menu screen is displayed.

23

NIHON Software Engineering, Co. Ltd.

Internet EDI Pro “e-Express”

Return Value List of Receiving Process
Return
Value
0
0301

Status

CausesNormal exitCan’t receive data.

The receiving mail address isincorrect.

 The password is incorrect.
(It is case-sensitive.) The mail server name is incorrect.
 The mail server is not operating.
2901

 The CPU resources (memory anddisk space) are not enough.

Can’t read the invoice of“e-Express.” (only e-Express)

When “MailConnect” has been started-up with /R or /C option, the return values of the above
process are set.
If “MailConnect” has been started-up with other options, no return values are set.
This function is effective when “MailConnect” has been started-up from a parent process and is
waiting for termination of that process.
If automatic start-up of a business application program has been set, “MailConnect” also waits
for termination of that process.
See the coding samples.
Detailed conditions are recorded in the system log.

<Displaying Process of Menu Screen>

Path name\EDI_Pro_MailConnect.exe mcjnnnn

mcjnnnn: Can be omitted.
<Displaying Process of Sending Log>

Path name\EDI_Send_Log.exe mcjnnnn/P

mcjnnnn: Can be omitted.
<Displaying Process of Receiving Log>

mcjnnnn/P

When this is omitted, it is regarded as “mcj0001.”

Path name\EDI_System_Log.exe mcjnnnn/P

mcjnnnn: Can be omitted.

24

When this is omitted, it is regarded as “mcj0001.”

Path name\EDI_Receive_Log.exe

mcjnnnn: Can be omitted.
<Displaying Process of System Log>

When this is omitted, it is regarded as “mcj0001.”

When this is omitted, it is regarded as “mcj0001.”NIHON Software Engineering, Co. Ltd.

Internet EDI Pro “e-Express”

Sample Coding<Visual Basic><In case of starting-up “MailConnect”, and operating it asynchronously with parent process.>
Dim RetVal
RetVal = Shell _("C:\Program Files\Internet_EDI_Pro\Program\edi_send_MailConnect.exe mcj0001/S ", 1)<In case of starting-up “MailConnect”, waiting for its termination, and obtaining returned
values.>Dim WSH, i
Set WSH = CreateObject("WScript.Shell")
i=WSH.Run("""C:\Program
Files\Internet_EDI_Pro\PROGRAM\EDI_send_MailConnect.exe"" /S", 1, True)
Note: Check the following library files in the Reference Setting window of Visual Basic.
1.

Microsoft scripting runtime

2.

Windows Script Host Object Model<Visual C++><In case of starting-up “MailConnect”, and operating it asynchronously with parent process.>
HINSTANCE iret =ShellExecute(m_hWnd,"open","C:\\Program Files\\Internet_EDI_Pro\\Program\\edi_send_MailConnect.exe","mcj0001/S",NULL,SW_SHOW);<In case of starting-up “MailConnect”, waiting for its termination, and obtaining returned
values.>#include <process.h>
int i = _spawnl( _P_WAIT,"C:\\Program Files\\Internet_EDI_Pro\\Program\\edi_send_MailConnect.exe","edi_send_MailConnect.exe","/S",NULL );25

NIHON Software Engineering, Co. Ltd.