Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java mail doubt  RSS feed

 
jprk box
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey guys ;
i have win2k, jdk1.2.2 , javamail-1.3 , jaf- 1.0.2 and also j2ee (j2sdkee1.2.1)
i can compile the demo program namely msgsend.java and while running it, the mail sent through my isp's smtp server returns back.
ie i'm getting a message in my inbox that mail is undeliverable Relay Not allowed
can u suggest any smtp server provided by sun , thru which i can send javamail
 
jprk box
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys;
i found a free smtp server from postcastserver.com and i'll shall test it.
help me in future queries
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can avoid the relay problem by allowing anonymous access to ur smtp server.If i assuem u r using windows smtp server(iis suite), then go to properties of smtp server,select Access tab, click relay button under relay restrictions, then on the pop window tick the checkbox.
now restart the smtp server and try again.
If you get the same problem try to play again in smtp properties by setting various access controls.
 
El Roy Cabildo
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can try James(Java Apache Mail Enterprise Server) you can find it from this link http://james.apache.org/
 
jprk box
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank u guys for ur response, but i can't solve the problem.
to be more clear;
i compiled the demo program in javamail namely "msgsend.java" and then for execution i gave the following command;
java msgsend -o someone@yahoo.com -M smtp.vsnl.net ricky@yahoo.com
(since vsnl is my isp, and their smtp server is smtp.vsnl.com)
but the mail is not transmited to yahoo id
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!