OL2002 via MAPI in VB

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
 
K

Karen Parker

Dan,

I realize that you said that you do not want to use anything Microsoft
specific. If you are only referring to the dependency of installing
Outlook, then you might also want to consider CDOSYS. While this will be
Windows dependent, it is not mail client dependent.

HOWTO: Send HTML Mail with CDO for Win 2000 and Remote SMTP Serv (286431)
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q286431

HOWTO: Send HTML Mail with CDO for Win 2000 and Local Pickup Dir (286430)
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q286430

Note that the ability to use Simple MAPI is going depend on the mail client
and whether it is MAPI compliant and how it is implemented.

I hope the information that I provided here has been helpful to you.

Karen Parker
Microsoft, Developer Support Engineer - Windows Messaging / Outlook

Please do not send email directly to this alias. This alias is for
newsgroup purposes only.

Disclaimer: This posting is provided "AS IS" with no warranties, and
confers no rights.
--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top