BaXt0R
asked on
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
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
Oops, left out params on first line:
Document doc = databaseObject.createDocum ent();
Document doc = databaseObject.createDocum
ASKER
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
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
I'm not familiar with that, tehre probably is one for Notes, but you would have to ask a websphere admin.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
CRAK,
Go ahead.
- qwaletee
Go ahead.
- qwaletee
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.createDocum
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" )