• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

code for sending mail to lotus notes.

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ;
I need some code to send email to lotus notes server without using the Java Mail API.
thanks in advance
arun
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What you are asking is a very large piece of work. IBM themselves only document how to use Lotus Notes (5+) as an email server through JavaMail(there's a Red Book on their site somewhere if you have a search around which explains this in much more detail). You will notice if you look at the third party resources section of the JavaMail docs on Sun's site that there are all sorts of implementations of SMTP, IMAP and POP3 avaliable, but nothing which supports the non-SMTP compliant features of some email servers. I only know of one project which is even attempting this (mailsomething mail http://mapi.sourceforge.net/) but it has yet to even release any code, so I wouldn't hold your breath.
However, your last topic suggested all you were looking for is a way to send email through a Notes 5 server using Java, correct? In which case JavaMail is fine, though you may need to either store more than 1 address against a user (both SMTP and Notes syntax) or write something to convert between Notes and SMTP. Remember that sending an email to a Notes server in the form mailbox@domain.tld will work (because Notes is does have SMTP compliant functionality), you only have to worry about the difference between the addresses you have and those which JavaMail will allow.
 
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you can use the Document Object Model of Lotus Notes itself.
There are basically 2 ways to connect to Lotus Domino from an external app Server:
- use Lotus Domino Corba Interface (use, not write corba yourself).
- local Connection (you'll need at least a notes client on the box where the external app Server is running).
this article might help:
http://www-10.lotus.com/ldd/today.nsf/8a6d147cf55a7fd385256658007aacf1/c18beec15f55f1ef85256d66005c7da9?OpenDocument
(this is part 2. There is also part 1.
For usage of Domino objects for sending email, look in Documentation of Method send() in Class Document. I am sure there is some sample code.
If you don't read whole article search for recycle(). You should call this method on all Notes Java Objects before they get garbage collected. Its no joke. Problems might pop up later if you don't use it.
regards Axel
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks guru
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic