• Post Reply Bookmark Topic Watch Topic
  • New Topic

JavaMail:sending mail from Command Line Using object  RSS feed

Chennarao Marvatu
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to write the application that send the mail through command line for
testing purpose ..For that i have to use the Interface and JavaVo object
pls help me out

Mailer interface
public void sendMail(MailVo mailVo)
MailVo class
in this just define the variables
and setters and getters


simpleMailer class
public void senMail(MailVo mailVo)

Test class
..having command line argumnets
ex ..mail.setTo=args[0];
like this


I have to Execute the Test.java

how to pass the object and get the values in SimpleMailer.java
pls send me the code .I WILL BE GRATEFUL TO U ALL

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!