Skip to main content
This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.
Information Mgmt
New to Lotus
How to buy
Live demos
Technical library
Forums & community
Java™ technology
Open source
SOA and Web services
Web development
My developerWorks
About dW
Submit content

developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 8 Forum

Notes/Domino 8 Forum

Previous Next
Subject: VBA : choose mailbox and send mail from Excel ?
Feedback Type: Question
Product Area: Notes 8 Client
Technical Area: Application development
Platform: Windows Vista client
Release: 8.0.2
Reproducible: Always

Hi to all,

I have a simple to send an email from Excel :

Private Sub Lotus_SimpleAndWorking()

Dim Session As Object
Dim Dir As Object
Dim Doc As Object
Dim Workspace As Object
Dim EditDoc As Object

'Creation of a memo in Lotus Notes
Set Workspace = CreateObject("Notes.NotesUIWorkspace")
Set Session = CreateObject("notes.NOTESSESSION")
Set Dir = Session.GetDatabase("", "")


'Creation d'un document
Set Doc = Dir.CreateDocument

Doc.form = "Memo"
Doc.Subject = "my subject"
Doc.SendTo = "to whom it may concen"
Doc.body = "some body"

'Display the Mail in Lotus Notes
Set EditDoc = Workspace.EditDocument(True, Doc)
Set Session = Nothing
Set Dir = Nothing
Set Doc = Nothing
Set Workspace = Nothing
Set EditDoc = Nothing

End Sub

It's sending email from my personal account (mail\Mail2\965203.nsf).

But i want to send email from another account. An account used by several people including me.

For that purpose i've change that line :
Set Dir = Session.GetDatabase("", "")

By this one :
Set Dir = Session.GetDatabase("Notes://PARFMB003/SERVERS/GROUP", "mail\Mail4\paitproffi.nsf")

It's not bugging, but it doesn't change anything : it's still sending the mail from my personal account.

What shall i do so it take into account that information : "paitproffi.nsf" (and not use this information i didn't give : "965203.nsf") ?

Thank you for your help !!!


Feedback number WEBBAR6GX7 created by fred beaudire on 09/13/2017

VBA : choose mailbox and send mail ... (fred beaudire 13.Sep.17)
. . Try (Barry Shapiro 13.Sep.17)
. . . . Working ! (fred beaudire 13.Sep.17)
. . . . . . Nope (Barry Shapiro 13.Sep.17)
. . . . . . . . Cool (fred beaudire 13.Sep.17)


Search this forum

Member Tools

RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds


Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds


IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums

 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite