Export (0) Print
Expand All

About the Mail Envelope API

Office 2007

The Mail Envelope API allows a mail client to interface with applications in the 2007 Microsoft Office system and let their users send 2007 Office documents. If a default mail client implements this API, users will be able to use the Microsoft Office Outlook 2007 mail envelope experience directly in 2007 Office applications.

Bb820989.vs_note(en-us,office.12).gif  Note
The Mail Envelope API is being deprecated. Solution providers intending to develop mail clients to interface with versions of Office after the 2007 Microsoft Office system must not use this API.

The Mail Envelope API consists of the following interfaces and methods. For detailed descriptions of these interfaces and methods, see KB 926453: Description of the mail envelope API in 2007 Office applications.

InterfaceMethodDescription
IMsoEnvelopeSupports hosting a mail envelope in an application.
InitInitializes the envelope.
SetParentGives the envelope the parent HWND.
ResizeTells the envelope to resize.
ShowTells the envelope to show itself or to hide itself.
SaveTells the envelope to save its data in a stream.
GetAttachThis method is a no-op method and always returns S_OK.
SetAttachAdds an attachment to the envelope.
NewAttachThis method is a no-op method and always returns S_OK.
SetFocusTells the envelope to set focus in the envelope.
GetHeaderInfoReturns the information from the header.
SetHeaderInfoSets information in the header.
IsDirtyIndicates whether the envelope data is dirty.
GetLastErrorReturns the error string for the given error code.
DoDebugThis method is a no-op method and always returns S_OK.
IMsoEnvelopeSiteAllows an envelope to interact with a hosting application.
RequestResize Requests that the host resizes the height of the envelope.
CloseNote Tells the host to close the message after it sends.
GetBody Obtains the body of the message.
OnEnvSetFocus Tells the host that focus has been put into the envelope.
DirtyToolbars Tells the host to consider the toolbars as dirty.
OnPropChange Tells the host that a header property has changed.
GetFrameWnd Asks for the HWND of the outermost frame window.
TranslateAccelerators Lets a host handle translating accelerators.
IMsoComponentAllows an envelope interact with a hosting application.
RequestResize Requests that the host resizes the height of the envelope.
FDebugMessage This method is a no-op method and always returns S_OK.
FPreTanslateMessage Lets a component handle a message.
OnEnterState This method is a no-op method and always returns S_OK.
OnAppActivateThis method is a no-op method and always returns S_OK.
OnLoseActivationThis method is a no-op method and always returns S_OK.
OnActivationChangeThis method is a no-op method and always returns S_OK.
FDoIdleThis method is a no-op method and always returns S_OK.
FContinueMessageLoopThis method is a no-op method and always returns S_OK.
FQueryTerminateThis method is a no-op method and always returns S_OK.
TerminateTells the component that the component manager wants to terminate.
HwndGetWindowRetrieves the HWND for a particular window.
IMsoComponentManager Allows an envelope to interact with a hosting application.
FRegisterComponent Registers a component with the component manager.
FRevokeComponent Revokes the registration of a component.
FOnComponentActivate Notifies the component manager that the component was activated.
IMsoEnvelopeHostSupports creating an envelope note.
CreateNote Creates an enveloped note.


Community Additions

ADD
Show:
© 2014 Microsoft