D
Dan
Trying to address email message automatically from VB
using MAPIMessages. This code works in everything but
OL2002 -
'have MAPIMessages as maprMessage
'address as zpRecipients
With maprMessage
.MsgType = "text/plain"
.RecipAddress = zpRecipients
.RecipDisplayName = zpRecipients
.MsgSubject = "Subject"
.MsgNoteText = vbCrLf & "Hello"
.Send True
End With
With OL2002, when the user hits send, the mail shows up
from System Administrator in their inbox, and won't send.
If I put in a call to .ResolveName, it works after asking
permission, but not all MAPI clients support that (Lotus,
specifically, does not). The whole reason we're using
MAPI is so that it doesn't matter what email program the
user uses, so switching to the Outlook Object Model or any
other Microsoft-only method isn't going to work.
Any ideas or ways around this without requiring
the .ResolveName?
Thanks,
Dan
using MAPIMessages. This code works in everything but
OL2002 -
'have MAPIMessages as maprMessage
'address as zpRecipients
With maprMessage
.MsgType = "text/plain"
.RecipAddress = zpRecipients
.RecipDisplayName = zpRecipients
.MsgSubject = "Subject"
.MsgNoteText = vbCrLf & "Hello"
.Send True
End With
With OL2002, when the user hits send, the mail shows up
from System Administrator in their inbox, and won't send.
If I put in a call to .ResolveName, it works after asking
permission, but not all MAPI clients support that (Lotus,
specifically, does not). The whole reason we're using
MAPI is so that it doesn't matter what email program the
user uses, so switching to the Outlook Object Model or any
other Microsoft-only method isn't going to work.
Any ideas or ways around this without requiring
the .ResolveName?
Thanks,
Dan