Solved

Domino Mail Provider in Websphere v5

Posted on 2004-10-25
393 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
Question by:BaXt0R
    6 Comments
     
    LVL 31

    Expert Comment

    by:qwaletee
    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
    Oops, left out params on first line:

    Document doc = databaseObject.createDocument();


    0
     

    Author Comment

    by:BaXt0R
    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
     
    LVL 31

    Expert Comment

    by:qwaletee
    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:
    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
    CRAK,

    Go ahead.

    - qwaletee
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Learn The Basics of Ethical Hacking & Pen Testing

    Computer and network security is one of the fastest growing and most essential industries in technology, meaning companies will pay big bucks for ethical hackers. This is the perfect course to leap into this lucrative career, learning how to use ethical hacking to reveal ...

    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
    Article by: Rob
    Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    913 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

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now