G
Guest
I have the following code in my Access application:
Dim OutApp As Outlook.Application
Dim OutMail As Outlook.MailItem
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(olMailItem)
Then later in the code, I use 'With OutMail' to send emails.
Is there a way within the VB code to specifiy the Outlook profile to use ?
(My app needs to run unattended and I can't have Outlook prompting
for the profile to use.)
Thanks,
Tom
Dim OutApp As Outlook.Application
Dim OutMail As Outlook.MailItem
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(olMailItem)
Then later in the code, I use 'With OutMail' to send emails.
Is there a way within the VB code to specifiy the Outlook profile to use ?
(My app needs to run unattended and I can't have Outlook prompting
for the profile to use.)
Thanks,
Tom