• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

How to test JAVAXMAIL program

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I am developing a site wherin I`m supposed to send/recieve Emails.
I understand that I will have to use the javax.mail package.
But is it that it cannot be tested on JavaWebServer or Apache Server?
If so how do I use it? I mean how to check while under development?
Thanx in Advance,
Milan Doshi
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you do a search on this site for "JavaMail", you should find lots of discussion and examples.
 
milan doshi
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanx but can anyone suggest if it is possible?
 
Frank Carver
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sure it's possible. Pleanty of people have written web-interfaced mail programs using servlets and JavaMail. You should also be able to run such servlets on any reasonable servlet container, which includes morern versions of JavaWebServer as well as Apache/JServ and Apache/Tomcat as well as a lot of others: Resin, JRun, ServletExec, Gefion .....
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
If you want to test whether your java mail enabled program works or not, then follow these steps.
1) Download the javamail api from www.javasoft.com/products/javamail website.
2) Download the java activation frame work from www.javasoft.com/products website.
3) edit ur autoexec.bat file and set classpath as follows:
----------------------------------------------------------------
set classpath=.;c:\javamail-1.1.3\mail.jar;c:\javamail-1.1.3\pop3.jar;c:\jaf-1.0.3\activation.jar;
----------------------------------------------------------------
Now compile the program and run the program.
JavaMail api is a platform independent and you can run it on posix compliant or windows compliant. It can run on javawebserver and as well as also apache. What u have to do is set the classpath in ur autoexec.bat (if ur using windows platform) or .profile(if ur using unix platform)
If you want some examples, go to javamail directory and in that you can find demo subdirectory and there u can find some very interesting examples.
I hope this info may find useful to you.
Bye.
Loke.
[This message has been edited by lokesh reddy (edited November 13, 2000).]
 
milan doshi
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Frank and Lokesh.
Lokesh your detailed explaination is really very helpful.
I will immediately do as stated.
Thanx once again,
Milan
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,
I tried to run the demo available in the javamail package configuring the JAVAWEBSERVER2.0 as per the guideline given in the README file .But I am confused as to what is to be used as IMAP host .Also, I didnot find jws.jar in the javawebserver2.0\LIB package which needs to be set in the class path.
Can anyone help?
Manish
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic