Emailing Through Domino COM Without being logged in

I have figured out how to email through lotus notes but the someone has to be logged into the machine. Is there a way of sending email without being logged in?

Subject: Emailing Through Domino COM Without being logged in

Not to be argumentative, but why on earth would you want to allow unauthenticated access to Notes databases? Sure, it’s quite possible - all you have to do is allow anonymous access to whatever mail database you want to access, then go through a web browser - since anonymous will have whatever access you want to assign, you can eliminate those “pesky” authentication prompts.

Subject: RE: Emailing Through Domino COM Without being logged in

I didn’t mean not logging into Notes, I meant not logging into Windows. As far as I can tell you have to be logged in on the machine containing the Notes Client for the automation to work.

Subject: RE: Emailing Through Domino COM Without being logged in

Oh yes, that’s even better. You want to be able to run code without being authenticated by the operating system. Don’t you think Windows security has enough holes? Well, that’s a Windows programming issue, so this forum is maybe not the right place to ask.

Actually, you do need a Notes login to send email – it’s just that the COM interface is probably taking advantage of Notes auto-login to authenticate via the Windows login. So running the code when there’s no active Windows login should result in a password challenge from Notes. Kind of defeats the purpose.

If you want to send email without logging in to Notes, do as the other fellow suggested, or use an SMTP email server. Domino can be set up to run SMTP.

Subject: RE: Emailing Through Domino COM Without being logged in

“Oh yes, that’s even better. You want to be able to run code without being authenticated by the operating system. Don’t you think Windows security has enough holes? Well, that’s a Windows programming issue, so this forum is maybe not the right place to ask”

What is your problem? I have discovered that you don’t need to be logged in to Windows to use Notes. But you do need to log into Notes (obviously). For your information, there is actually a fair bit of code that gets run when you are not logged in.

Subject: RE: Emailing Through Domino COM Without being logged in

If you’re using OLE automation (The “Lotus Notes Automation Classes”), the Notes client code needs to be instantiated/starts up during an active Windows session.If you’re using COM (The “Lotus Domino Objects”), you can work around this issue, as the COM objects only do back-end work (no UI/client interaction). So you can login to Notes via COM by specifying the UserName and password (via the “InitializeUsingNotesUserName() method”) and then create a mail document, etc…

If you tried that and that didn’t work, then you’re probably running into a process security configuration issue, meaning that your process can’t bind to the Domino COM objects. To configure this, you’d need to run the DCOM config tool. To explain what exactly needs to be done is out of the scope for this forum, but if you search on google.com etc. for how to configure COM security via the DCOM config tool you should find material.

Thomas - IBM