Sending message from Internet Explorer

H

Haakon Johannessen

Scenario:

We have a asp.net solution that need to be able to send message through the
outlook clients.

Mailto urls won't work since we have to include attachments, so I'm looking
into
creating something else.

The alternatives I am looking at are:
a) A com addin
b) Forms (.oft files)
c) Macros

Clients are Outlook 97 and newer.
It is preferred not to have to do any client installation.

But since I am a newbie at Outlook programming I thought I should get the
opinion of people who know how to do this....

What is the best solution, what won't work ,and where can I find more
information on how
to do this on the net?

thx in advance,
Haakon Johannessen
 
S

Sue Mosher [MVP-Outlook]

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?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
H

Haakon Johannessen

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() = "(e-mail address removed)"
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
 

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