Posted By:
tianhao_yang
Posted On:
Thursday, July 12, 2001 12:59 PM
I tried to use JavaMail in a solaris box, but failed. Could anyone help? What I have done: >1. Set CLASSPATH for needed jar files, mail.jar. activation.jar, pop3.jar. 2. Put msgsend.java in WEB-INF/classes. 3. javac msgsend. 4. run the file according to the instruction: java msgsend -M SMTP.mail.companymail.com myname@mycompany.com Outcome 1. As the program runs, I was asked to give Subject, and then msg content. I typed ctrl-Z to end the mailing 2. $ java msgsend -M SMTP.mail.companymail.com myname@mycompany.com Subject: test Hi, JavaMail!
More>>
I tried to use JavaMail in a solaris box, but failed. Could anyone help?
What I have done:
>1. Set CLASSPATH for needed jar files, mail.jar. activation.jar, pop3.jar.
2. Put msgsend.java in WEB-INF/classes.
3. javac msgsend.
4. run the file according to the instruction:
java msgsend -M SMTP.mail.companymail.com myname@mycompany.com
Outcome
1. As the program runs, I was asked to give Subject, and then msg content. I typed ctrl-Z to end the mailing
2.
$ java msgsend -M SMTP.mail.companymail.com myname@mycompany.com
Subject: test
Hi, JavaMail!
^Z[2] + Stopped (SIGTSTP) java msgsend -M SMTP.mail.mycompanymail.com
$
* mail server is in other machine, connected with the solaris I use via LAN.
I appreciate any help?
<<Less