aspose file tools*
The moose likes Java in General and the fly likes send email using Domino servers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "send email using Domino servers" Watch "send email using Domino servers" New topic
Author

send email using Domino servers

prakash chauhan
Ranch Hand

Joined: Jun 22, 2007
Posts: 81
Hi ,
i need to make an application that will use domino server to send automatic emails to customers
could someboby guide me on how to go about it?
i know a little bit about java mail api but noting about domino servers as such.
Thanks.
bart zagers
Ranch Hand

Joined: Feb 05, 2003
Posts: 234
Well, it depends. There are at least two options.

Using standard smtp (you can use for example javamail in this case). But then the smtp service has to be activated on the Domino server (maybe it already is).

Using the Domino specific solution, the Lotus Domino Toolkit for Java/Corba. This is a specific library to connect to the Domino server (and allows much more than just sending mails), it is powerful, but sometimes rather awkward to use. For this to work, the DIIOP service must be activated on the Domino server (which is probably not yet done).
prakash chauhan
Ranch Hand

Joined: Jun 22, 2007
Posts: 81
hi bart.
thanks for the reply..
if i have an account in lotes notes ,
can't i use my credentials to send email from my application?
i apologize if it sounds stupid..i am yet to get to know the mail api or how it works..
thanks for the help
bart zagers
Ranch Hand

Joined: Feb 05, 2003
Posts: 234
Hi,

You have to decide first what you want. A general simple way to send mails (using javamail/smtp) or a more complex, more powerful Lotus Domino way using the mentioned toolkit. Do you also want to read mails or manipulate mails in an mailbox?

It is not very difficult to send mails using smtp and the javamail API, in another thread I found this link with some explanation. This option has (almost) nothing to do with Lotus Domino at all, the only thing you need is an smtp server, but this is for the system admin to setup and configure, you only need an ip-address/port (and maybe username/password). (Another way is looking at Apache Commons Mail, which even simplifies working with the javamail API).

Working "the Domino way" gives you a lot of power (programmatically moves mails to different folders, adding properties to mails...) but is a lot more difficult to do. This has nothing to do anymore with the javamail API, but all with the toolkit.

I guess you want the first thing. In that case, read up on the javamail api and talk to your system admin about smtp. Sending a mail will only be a few lines of code in that case.
prakash chauhan
Ranch Hand

Joined: Jun 22, 2007
Posts: 81
hi,
thanks for the reply..
yeah i dont need any kind of manipulations at all , i just need to send out kind of reminders when ever required.
I ll get in touch with the admin to find out whats the smtp server name.
Thanks for guiding.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: send email using Domino servers