Tiptop gp JavaMail settings and instructions

Source: Internet
Author: User

Tiptop gp JavaMail settings and instructions

Use System tiptop gp 3.0
Today, I tested the tiptop gp mail delivery function. The test is basically successful. Now I will briefly describe the step settings as follows:
<1> check the java environment settings and determine the storage path and Related Programs of JavaMail.
1. Determine the JDK version and path strength: [java version "1.3.1" (above )]
Our version is 1.6, which meets the following requirements:

[Plain]
</U1/topprod/tiptop> java-version
Java version "1.6.0"
OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode)
======================= Skip the two steps ============================ ======================
2. echo $ PATH to check whether jdk1.3.1 has been set,
If you do not have the permission, log on to the root user and set the following parameters:
# JDK PATH
PATH = $ jdk1.3.1's security PATH/bin: $ PATH
After updating the profile, log out of the TIPTOP client and log on again,
To reload the profile. Otherwise, an error is prompted on the console.
(My PATH is set to PATH =/usr/bin/jre1.5.0 _ 06/bin: $ PATH,
Check whether your jdk is in this path)
3. Log On again with the user login token, and echo $ PATH to confirm whether the PATH is correct.
======================= Skip the two steps ============================ ==============================

2. Check whether the following path and file exist:
</U1/topprod/tiptop/ds4gl2/bin/javamail> ls
Demo doc genattach gencontent genxml jmjar UnixMailSender. bat
Each file in the javamail directory is described as follows:
<1> jmjar Resource: jar packages used when JavaMail is used,
There are five projects, including activation. jar, jdom. jar, mail. jar, ttopmail. jar, and xerces. jar.
<2> demo Resource: A program containing zookeeper JavaMail.
<3> doc information: it contains the related file of JavaMail.
<4> UnixMailSender. bat: Call the bat protocol of the JavaMail line of the queue.


After completing the preceding steps, you can perform a simple test:
For example, if zookeeper javamail can send emails normally, it can be explained through the XML file architecture.
In the above javamail directory, there is a demo test example:
We only need to modify test. xml in it. After the modification is correct, we can run jmail to check whether mail can be sent.

[Plain]
</U1/topprod/tiptop/ds4gl2/bin/javamail> cd demo # Switch to the demo directory.
</U1/topprod/tiptop/ds4gl2/bin/javamail/demo> ls
433. xml body.txt runjmail test_attach.txt test.htm test. xml
</U1/topprod/tiptop/ds4gl2/bin/javamail/demo> vi test. xml
<? Xml version = "1.0" encoding = 'big5'?>
<Mail>
<Protocol> smtp </Protocol>
<CheckAuth> N </CheckAuth>
<MailServer> SHDC02.shyahsin.com </MailServer>
<MailServerPort> 25 </MailServerPort>
<MailServerUser> fengmx </MailServerUser>
<MailServerUserPassword> shya_2007 </MailServerUserPassword>
<Subject> 01111545 test </Subject>
<MessageBody>/u1/topprod/topcust/cxm/per/cxmi999.per </MessageBody>
<Attach>/u1/topprod/topcust/cxm/per/cxmi999.per </Attach>
<Recipient> fengmx@shyahsin.com </Recipient>
<From> fengmx@shyahsin.com </From>
</Mail>
========= Xml file description ====================================== ================
Protocol: Depends on the Protocol, such as smtp.
CheckAuth: whether the Mail Server requires a certificate.
MailServer: the address of the Mail Server, for example, 10.40.40.168.
MailServerPort: the terminal port of the Mail Server, for example, 25.
MailServerUser: you can log on to the Mail Server using the region name, such as topftp.
MailServerUserPassword: the password used to log on to zookeeper, for example, demo @ erp.
Subject: The Subject of the letter.
MessageBody: the channel name of the letter content, for example,/u1/topprod/topcust/cxm/per/cxmi999.per
Attach: name of the attacker who wrote the letter, for example,/u1/topprod/topcust/cxm/per/cxmi999.per
Recipient: Recipient, e.g. user01@dsc.com.tw: user01.
CCRecipient: Copy, in the same format as 10.
BCCRecipient: BCC copy, in the same format as 10.
From: sender, in the same format as 10.
========== END ----------------------------------------------

After the test. xml file is correctly set, run runjmail in the same directory,
The following information indicates that JavaMail is successfully installed and set.

[Plain]
</U1/topprod/tiptop/ds4gl2/bin/javamail/demo> ls
433. xml body.txt runjmail test_attach.txt test.htm test. xml
</U1/topprod/tiptop/ds4gl2/bin/javamail/demo> runjmail
Prepare mails info...
Sending mails...
Mails send successfully.


After the test is successful, let's take a look at how to associate it with ERP.
There are two main programs:
Aooi999: JavaMail parameter maintenance job (I use the default mail host)
Aooi998: Javamail recipient maintenance job

 

 


This program is successful:

[Plain]
</U1/topprod/topcust/cpm/4gl> r. r2 apmr001
No idle control
Apmr001
INFO: 4st for Interface Level =/u1/topprod/tiptop/config/4st/tiptop.4st
INFO: 4ad for Interface Level =/u1/topprod/tiptop/config/4ad/2/tiptop.4ad
INFO: 4tm for Interface Level =/u1/topprod/tiptop/config/4tm/topmenu_r.4tm
INFO: 4 tb for Interface Level =/u1/topprod/tiptop/config/4 tb/toolbar_r.4tb
INFO: Locale feature use 0.02143 seconds.
G_xml_name: apmr001.03r. xml
INFO: 4st for Interface Level =/u1/topprod/tiptop/config/4st/tiptop.4st
INFO: Locale feature use 0.04478 seconds.
INFO: Locale feature use 0.01043 seconds.
Prepare mails info...
Sending mails...
Mails send successfully.
Chmod 777 apmr001.03r
Successfully received the email:

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.