Inspector Wrapper Classes for Outlook 2003 & SMTP

  • Thread starter Trin via OfficeKB.com
  • Start date
T

Trin via OfficeKB.com

Pretty new to Outlook plugins and developing with VB6.

I need some pointers on how to create a success inspector wrapper class
where I can have multiple instances of inpectors open at the same time and
when I click on my new "Send" button it will only send the current
inspector and not try to send all other inspectors. What should I be
looking out for, what id's should I be checking etc.

I have a working wrapper class but with the exception of when I click my
"send" button all the open inspectors are sent as well. I don't feel
comfortable with the inspector class that I have found from another site
and would like to know what is important to creating a proper wrapper for
an olMail inspector.

On another note, when I click my "Send" button is there a way I can get the
smpt server used before the email has officially left my computer? Perhaps
somewhere in the MailItem heading data or by using a WithEvents to trap the
mail going out? I don't know what the object model is access this
information.

Your assistance is much appreciated.
 
D

Dmitry Streblechenko

Make sure you set the Tag property to a unique string for all instances of
your button.
As for the account, Outlook sets a couple of named props (account name and
id) if an account other than the default one is to be used.
You can access these properties using CDO 1.21 or Redemption - look at a
message in the Sent Items folder with MdbView or OutlookSpy (click IMessage)
to see what I mean.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

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