Christine Pearc
Christine
- Local time
- Today, 11:00
- Joined
- May 13, 2004
- Messages
- 111
We use Outlook for our email. I have been using the DoCmd.SendObject to send emails automatically from Access. However, recently I've seen the following method:
Dim myoutlook As Outlook.Application
'create outlook
Set myoutlook = CreateObject("Outlook.Application")
Set mymsg = myoutlook.CreateItem(olMailItem)
...etc.
What is the benefit of the above example over the much simpler SendObject method? (BTW, we are using XP. Our MIS department is currently in the process of altering the DLL to get around the latest Microsoft security patch, i.e. "Another programme is attempting to send an email...")
Thank you,
Christine
Dim myoutlook As Outlook.Application
'create outlook
Set myoutlook = CreateObject("Outlook.Application")
Set mymsg = myoutlook.CreateItem(olMailItem)
...etc.
What is the benefit of the above example over the much simpler SendObject method? (BTW, we are using XP. Our MIS department is currently in the process of altering the DLL to get around the latest Microsoft security patch, i.e. "Another programme is attempting to send an email...")
Thank you,
Christine