Solved

access lotus notes email from an IIS web application

Posted on 2003-12-08
3
398 Views
Last Modified: 2013-12-18
I want to send an email from an IIS web application to my internal lotus notes email system.  I think there is a com object available, but I'm not sure and I'm not sure how it works, has anyone does this and have that info.  Thanks, Bostonrose
0
Comment
Question by:Bostonrose
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 31

Expert Comment

by:qwaletee
ID: 9896623
Multiple ways to do this...

Connect via SMTP

Load/configure a Notes client, Outlook, and the MS Outlook/Notes connector, then use MAPI

Load Outlook, iNotes for Outllok access, then use MAPI

Load/configure the Notes client then use the Notes COM interface
0
 

Author Comment

by:Bostonrose
ID: 9896844
I guess I wasn't clear about what I want to do.  and I don't know anything about Lotus Notes so I need specifics on that if you have an idea.  I have a web application running with IIS 5 and I do not want to open up the SMTP web service for that IIS, but I want to send an email message.  In our shop we have Lotus Notes for email, so I need to know how under asp in my web page I can configure to send email information to the Lotus Notes server that is inside our firewall so that it will do what it needs to do to send out the email either internal or external.  Someone suggested that there is an asp "Com" object that can be used, but I'm not familiar with it or it's use, so I was looking for info on that.  Thanks, Bostonrose
0
 
LVL 31

Accepted Solution

by:
qwaletee earned 250 total points
ID: 9896933
I did not mean to say that you need to open up the SMTP service on IIS. I meant, you can make use of the SMTP ***access*** features which allow you to use an external SMTP service.  Domino will be the SMTP service, and yo just use it to send SMTP mail (which can ultimately go to either the nternetor internal Notes users)

Any of the other optiosn will require the installation of a Notes client, with its own Notes ID and password.  Then, you can use either one of the two MAPI-to-Notes options (and send via the MAPI interface), or you can use teh DOmino COM objects.

Here's some code to use DOmino COM objects:

Dim s as New NotesSession
s.Initialize( "notes password" )
Dim dbDir as notesDbDirectory
Set dbDir = s.getDbDirectory("")
Dim mail as notesDatabase
Set mail = dbDir.OpenMailDatabase
If Not mail.IsOpen Then
  mail.Open("","")
End If
If Not mail.IsOpen Then
  'error handling
  'Exit Sub
End If
Dim message as notesDocument
Set message = mail.createDocument
message.replaceItemValue "Form" , "Memo"
message.replaceItemValue "SendTo" , "some message recipient - internal - or user@internet.com"
message.replaceItemValue "Subject" , "Message summary/heading"
message.replaceItemValue "Body" , "Plain text main message - using rich text is more complicated"
message.Send False 'False means do not use an esoteric formatting option, which would not work here
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Lotus notes email code 6 126
Only send email if contains "abcd" 3 152
Entry not found in index or view's index not built 4 124
Lotus Notes shared mailbox 'Sent by' in header 3 152
You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
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.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Suggested Courses

739 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