This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mail client testing

 
mukesh pandey
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I have written a mail client, and I want to test it if I am able to send mail with that or not so I want to ask can we simply call that method of mail client from main method and can test ? i tried to test my mail functionality but i did not able to send the mail though i am able to send mail with the same code when i deploy it on weblogic... my doubt is that is server must for sendig the mail apart from SMTP server ? can't i send mail directly using junit or main method ?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No mail server = no mail. You can set up and run a local mail server like Apache James, or use an embedded mail server like Aspirin.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic