S
Silvester
I use outlook automation to prepare emails from Access.
Dim oApp As Outlook.Application
Dim objNewMail As Outlook.MailItem
Dim objOutlookRecip As Outlook.Recipient
Set objNewMail = oApp.CreateItem(olMailItem)
With objNewMail
..To = forms![frmemail]![txtToemail]
..Subject = "Email"
..Body = strMsg
..Save
..Send
End With
1. How can I make sure that Outlook is installed on end user's systems
before preparing the email ?
2. Also, if Outlook is not the default mail client then prepared emails just
sit in the outlook outbox. Is there any way to force Outlook to send out
prepared emails instead of keeping them in the outbox ?
3. Is there any way of accessing Outlook's global address book and put
addresses into a combobox on an Access form ?
Thanks very much.
Dim oApp As Outlook.Application
Dim objNewMail As Outlook.MailItem
Dim objOutlookRecip As Outlook.Recipient
Set objNewMail = oApp.CreateItem(olMailItem)
With objNewMail
..To = forms![frmemail]![txtToemail]
..Subject = "Email"
..Body = strMsg
..Save
..Send
End With
1. How can I make sure that Outlook is installed on end user's systems
before preparing the email ?
2. Also, if Outlook is not the default mail client then prepared emails just
sit in the outlook outbox. Is there any way to force Outlook to send out
prepared emails instead of keeping them in the outbox ?
3. Is there any way of accessing Outlook's global address book and put
addresses into a combobox on an Access form ?
Thanks very much.