Forums Register Login

Please Help With the 'msgsend' Tutorial

+Pie Number of slices to send: Send
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 ]
+Pie Number of slices to send: Send
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 ]
Would you like to try a free sample? Today we are featuring tiny ads:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 938 times.
Similar Threads
Mail API
Receiving e-mails using SMTP
Attach file to default mail agent
sending mail hangs - no exception thrown, mail not sent
Connect to SMTP server
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 13:28:07.