Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / September 2004

Tip: Looking for answers? Try searching our database.

Sending message from Internet Explorer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Haakon Johannessen - 20 Sep 2004 12:41 GMT
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
Sue Mosher [MVP-Outlook] - 20 Sep 2004 14:41 GMT
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?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.