You left out a key piece of information -- whether this is an in-house or
external project and whether your mail server is Microsoft Exchange.
As for the client application alternatives you're looking at so far:
> The alternatives I am looking at are:
> a) A com addin
Requires client installation; supported only in Outlook 2000 or later.
> b) Forms (.oft files)
Don't run code in Outlook 2000 SR-2 or later
> c) Macros
Suitable only for personal use, not enterprise-wide installation.
Why do you want to use the Outlook client, rather than sending directly
through SMTP?

Signature
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> Scenario:
>
[quoted text clipped - 14 lines]
> information on how
> to do this on the net?
Haakon Johannessen - 29 Sep 2004 13:23 GMT
It is part of a bigger product we are selling (and using ourselves).
The product is a document archive used in e.g. goverment departments.
The idea is:
We wan't to be able to
a) take a document object in our product and send that with outlook (since
this gives access to address books and so on...)
b) and return the updated information to our product.
c) import email from outlook into our product.
We have a client .Net component that does something similar with Word, so I
thought i could use that.
a) is pretty straight forward
Try
m_AppObject = GetObject(,"Outlook.Application")
Catch
m_AppObject = CreateObject("Outlook.Application")
End Try
m_MailObject = m_AppObject.CreateItem(OlItemType.olMailItem)
' add document properties
m_MailObject.To() = "test@geko.no"
m_MailObject.Subject = "test"
m_MailObject.Body = "body"
m_MailObject.Display()
b) Haven't found out this yet.
Have been trying to add a button to the m_MailObject toolbar:
m_InspectorObject = m_MailObject.GetInspector()
m_CommandBar = m_InspectorObject.CommandBars("Standard")
m_CommandBarButton =
m_CommandBar.Controls.Add(MsoControlType.msoControlButton)
m_CommandBarButton.Caption = "Custom&Button"
m_CommandBarButton.OnAction = "tester"
but the question is how and where can i add the code i want behind the
OnAction?
Is there also any way to capure the send event?
c) We have already developed a com-addin for this.
thx in advance,
Haakon Johannessen
> You left out a key piece of information -- whether this is an in-house or
> external project and whether your mail server is Microsoft Exchange.
[quoted text clipped - 35 lines]
>> information on how
>> to do this on the net?