• Post Reply Bookmark Topic Watch Topic
  • New Topic

Please Help With the 'msgsend' Tutorial  RSS feed

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying the JavaMail tutorial at
http://java.sun.com/developer/onlineTraining/JavaMail/contents.html

I compiled the msgsend.java file and run the file this way:
C:\javamail-1_3_1-upd\javamail-1.3.1\demo>java msgsend -o jenc-c@MyCompanyName.org -M 131.167.241.117.milky-way.smtp.MyCompanyName.org jiapei_jen@yahoo.com

where 131.167.241.117 is my machine name.

In the DOS Window, it shows To: jiapei_jen@yahoo.com
and Subject: is prompted. I typed in

It is a test <enter>
I want to see if it is working <Ctrl-Z> <enter>

and the cursor keeps blinking in the DOS window. Does it mean that I do not have the host name (IP address of the SMTP mail server) right? or it is due to some other problems?
[ September 17, 2004: Message edited by: JiaPei Jen ]
 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I experiment the tutorial example a little more, this is what I got now:

I am trying the JavaMail tutorial at
http://java.sun.com/developer/onlineTraining/JavaMail/contents.html

I have the IIS SMTP virtual server installed in my machine. In the domains folder, I can see the domain name is XP-JENC-C.milky-way.MyCompanyName.org and its type is Local(default).

I compiled the msgsend.java file and run the file this way:
C:\javamail-1_3_1-upd\javamail-1.3.1\demo>java msgsend -o jenc-c@MyCompanyName.org -M XP-JENC-C.milky-way.MyCompanyName.org jiapei_jen@yahoo.com

In the DOS Window, it shows To: jiapei_jen@yahoo.com
and Subject: is prompted to the screen. I typed in

It is a test <enter>
I want to see if it is working <Ctrl-Z> <enter>

and the cursor keeps blinking in the DOS window. Everything is hanging there and does not move forward. Is it because the IIS SMTP server is not running? or there are other problems?

[ September 17, 2004: Message edited by: JiaPei Jen ]
[ September 19, 2004: Message edited by: JiaPei Jen ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!