Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Domino Mail Provider in Websphere v5

Posted on 2004-10-25
8
Medium Priority
?
416 Views
Last Modified: 2013-12-18
Hi,

I really hope someone knows how to do this coz its driving me mad. I've searched everywhere for information on this and nothing has come up.

Basically I need to set up anmail provider in websphere application server for domino, so that I can send mails through it. Now I thought this would be something pretty obvious to do (as Domino & Websphere r supposed to be tightly integrated), but I can't for the life of me work it out.

Any help on this would be much appreciated.

Thanks,

Bax

0
Comment
Question by:BaXt0R
  • 4
  • 2
8 Comments
 
LVL 31

Expert Comment

by:qwaletee
ID: 12403320
By mail provider, do you simply mean an object class that sends mail for you?  I don't think there's a simple class for that, but if you work through the Domino classes, it isn't that hard.

First thing is to get yourself set up with the Domino classes.  They are available if you have a Notes or Domino executable installed on the local box or you can use a CORBA implementation.  The jar files are Notes.jar and NCSO.jar.  Once you have basic session initialization cofirmed, you can do a mail message as follows:

1) get a handle to a database object -- any database object -- the server's mail.box would be fine
Document doc = databaseObject.createDocument;
doc.replaceItemValue ( "Form" , "Memo");
doc.replaceItemValue ( "Subject", "re: something or other");
doc.replaceItemValue ( "Body" , "Tet of message, if all you need is plain text");
doc.send ( "address of a single recipieent" )
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 12403326
Oops, left out params on first line:

Document doc = databaseObject.createDocument();


0
 

Author Comment

by:BaXt0R
ID: 12404914
Hi,

Thanks for the reply, but I've done that already. In Websphere there's a way to setup mail providers so you can use JavaMail to send email. This makes it easy for the administrator to change the mail server, and use whichever mail protocol they have installed without recoding. If there isn't a way of doing this with Websphere then I guess I'm going to have to do it the way you suggested. Although I would prefer to use the mail provider.

Bax
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 31

Expert Comment

by:qwaletee
ID: 12404935
I'm not familiar with that, tehre probably is one for Notes, but you would have to ask a websphere admin.
0
 

Accepted Solution

by:
BaXt0R earned 0 total points
ID: 12434271
In the end I just used the smtp service in Notes, and as it was already setup, so it was no problem. The only thing that happened was when I set up the mail provider i named it SMTP instead of smtp, which caused major problems as I was just getting back an unable to relay error, which was of no help. Took me 2 hours to find out that the case made a difference.

Bax.

Any chance of a refund ?
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 12466397
CRAK,

Go ahead.

- qwaletee
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question