dcsimg
Failed to Send Msg
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

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

Re: Failed to Send Msg

Posted By:   John_Zukowski  
Posted On:   Thursday, July 12, 2001 06:50 PM

It looks like ^Z on your platform isn't used for EOF.


To simplify, add the subject and message content to a file and add "< thefile" to the end of the command. Then you don't have to worry about CTRL-Z.

About | Sitemap | Contact