hai Imtiaz Kalburgi ,
I alredy faced the same problem what ur facing now
For mail-api u have to set the classpath with 2 jar files
a).mail.jar
b).activation.jar
I used JWS2.0 with NT Workstation andSMTP host may be remote or local u can
specify the IP addr or name itself, try to use a demo prg. which is alredy
in mail-API samples i used "msgsendsample.java" .@author Max Spivak , it's
working fine., ok
Hope it's enough for u if any problem conduct me indvi.
Ok
-siva bass
> -----Original Message-----
> From: Imtiaz Kalburgi [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, August 17, 2000 11:42 PM
> To: [EMAIL PROTECTED]
> Subject: Properties files for Java and JWS
>
> Hello everybody,
>
> I am trying set the properties for mails.
> Actually i am implementing JavaMail with Servlets running on JWS2.0 on
> Win-NT workstation. . .
>
> To set the properties the command is
> c:\>java -D
>
> Can anybody tell me how do i set the mail.smtp.host setting.
> I mean i want the total and detailed information about using java -D
> option.
> Kindly help . . .
> OR how do i set the mail server properties through program if anybody has
> a
> sample code please send.
>
> When I run my servlet i get
> /*Could not connect to SMTP host: localhost, port: 25;*/ error. . . which
> means that my server is by default taking the localhost as the mail server
> which is not. Actally the mail server is remote. I want the system to know
> that the mail server is remote and i want to give the IP of the remote
> mail
> server.
>
> please help me. . .
> If u need more details send a mail to me at [EMAIL PROTECTED]
>
> U can run this program from this URL
> http://202.54.39.203:8080/servlet/WebSMTP
> u will see the problem. . please help. .
>
>
> Awaiting ur early and helpful response. . .
>
> Thanx in advance. .
>
> regards,
> Imtiaz
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html