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