I noticed a difference in the behavior between NT and XP boxes.
Here’s my code snippet.
HTH.
Set objOutlook = CreateObject("Outlook.Application")
'Set objItem = objOutlook.CreateItem(olMailItem) 'When automating Outlook with _vbscript_, you must use numeric values rather than constants because _vbscript_ doesn't support Outlook's built-in constants ' 0 below is the numeric value for olMailItem. Set objItem = objOutlook.CreateItem(0)
Lava
------------------------------------------------ Lava Boggavarapu Lava Trading Inc. 95 Morton Street New York, NY 10014
Tel 212.519.9371 Mobile 732.668.2935 -----Original Message-----
Thanks for the suggestion; I am either doing it wrongly or it's not the cause of the problem. The exact same error is still occurring on some machines and my code now looks like this:
Public Sub
send_email_externally(EMail_who_to, Email_subject, Email_Message, Optional
Email_attachment)
|
- [AccessDevelopers] Problems emailing from Access 2003 Cathy Jupp
- RE: [AccessDevelopers] Problems emailing from Access... Lava Boggavarapu
- RE: [AccessDevelopers] Problems emailing from Access... Cathy Jupp
- RE: [AccessDevelopers] Problems emailing from Access... Lava Boggavarapu