• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 423
  • Last Modified:

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

0
BaXt0R
Asked:
BaXt0R
  • 4
  • 2
1 Solution
 
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
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
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
 
qwaleteeCommented:
CRAK,

Go ahead.

- qwaletee
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now