dcsimg
Problem in JavaMail1.2 Example "msgsend.java"
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, November 20, 2001 06:21 PM

Hai all, I am Facing Problem in using "msgsend.java" Example (which is present in "JavaMail1.2demo" Folder, When Compile this, it compiles without any error . but while running the same i am facing some problem which are listed below --------------------------------------------------------------------------------------------------------------------------------------------------------- Problem 1 --------------------------------------------------------------------------------------------------------------------------------------------------------- if i Run the with the Command line like "java msgsend -o ctc@jhancock.com.sg -M 192.1.1.68   More>>

Hai all,

I am Facing Problem in using "msgsend.java" Example (which is present in "JavaMail1.2demo" Folder,



When Compile this, it compiles without any error .



but while running the same i am facing some problem which are listed below

---------------------------------------------------------------------------------------------------------------------------------------------------------

Problem 1

---------------------------------------------------------------------------------------------------------------------------------------------------------

if i Run the with the Command line like "java msgsend -o ctc@jhancock.com.sg -M 192.1.1.68Server

dsssk@yahoo.com" i am facing following error.



D:javamail-1.2demo>java msgsend -o ctc@jhancock.com.sg -M 192.1.1.68Server dsssk@yahoo.com

To: dsssk@yahoo.com

Subject: Test Mail

Welcome to JavaMail1.2

^Z

javax.mail.SendFailedException: Sending failed;

nested exception is:

javax.mail.MessagingException: Unknown SMTP host: 192.1.1.68Server;

nested exception is:

java.net.UnknownHostException: 192.1.1.68Server

at javax.mail.Transport.send0(Transport.java:218)

at javax.mail.Transport.send(Transport.java:80)

at msgsend. (msgsend.java:165)

at msgsend.main(msgsend.java:55)



---------------------------------------------------------------------------------------------------------------------------------------------------------



Problem 2

---------------------------------------------------------------------------------------------------------------------------------------------------------

if i Run the with the Command line like "java msgsend -o ctc@jhancock.com.sg -M 192.1.1.68 Server dsssk@yahoo.com" i am not facing any error. but Not mail is send to the Perticular Addresses.



D:javamail-1.2demo>java msgsend -o ctc@jhancock.com.sg -M 192.1.1.68 Server dsssk@yahoo.com

To: Server

Subject: TEst Mail

Welcome to JavaMail1.2

^Z



Mail was sent successfully.

---------------------------------------------------------------------------------------------------------------------------------------------------------



Can any one can help me in this



Regards



D S S Sampath Kumar    <<Less

Re: Problem in JavaMail1.2 Example "msgsend.java"

Posted By:   James_Kelley  
Posted On:   Wednesday, December 5, 2001 07:17 PM

The First example has 192.1.1.68Server this as the SMPT host name or ip. Which it is neither of them. I guess you made a typo when running it.




The Second example has Server this as the to email address. Which it is not at all. I guess you made a typo when running this one also.



I hope this helps!

About | Sitemap | Contact