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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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
Fundamentals of JavaScript

Learn the fundamentals of the popular programming language JavaScript so that you can explore the realm of web development.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
qwaleteeCommented:
CRAK,

Go ahead.

- qwaletee
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.