Domino Mail Provider in Websphere v5

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

BaXt0RAsked:
Who is Participating?
 
BaXt0RConnect With a Mentor Author Commented:
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
 
qwaleteeCommented:
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
 
qwaleteeCommented:
Oops, left out params on first line:

Document doc = databaseObject.createDocument();


0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
BaXt0RAuthor Commented:
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
 
qwaleteeCommented:
I'm not familiar with that, tehre probably is one for Notes, but you would have to ask a websphere admin.
0
 
qwaleteeCommented:
CRAK,

Go ahead.

- qwaletee
0
All Courses

From novice to tech pro — start learning today.