Sending mail from custom form...

T

Tomislav Petrovic

Sorry for crosspost, I wasn't sure which group is correct for this question.

So...
I have developed a custom form to display some mail items in Outlook in ATL,
by implementing IPersisteMessage, IMAPIForm, IDispatch... interfaces.

STDMETHODIMP Close();
STDMETHODIMP Display();
STDMETHODIMP GetLastError
//IPersistMessage Methods
STDMETHODIMP GetClassID
STDMETHODIMP IsDirty();
STDMETHODIMP InitNew
STDMETHODIMP Load
STDMETHODIMP Save
STDMETHODIMP SaveCompleted
STDMETHODIMP HandsOffMessage();
//IMAPIForm Methods
STDMETHODIMP SetViewContext
STDMETHODIMP GetViewContext
STDMETHODIMP ShutdownForm
STDMETHODIMP DoVerb
STDMETHODIMP Advise
STDMETHODIMP Unadvise

Displaying existing items works fine, Load gets called, DoVerb for display
gets called and I display my view...

What I do not know is what to do when my custom form is used to create new
item.
I display empty view when InitNew gets called and DoVerb gets called.
User edits data in my custom form and presses "Send" button.

My question is What do I do then?!?!?

What methods of what interface do I need to call so message gets sent in the
usual way (placed
in Outbox, transport providers are pooled which one can send, one of them
sends it and
then it gets placed in SentItems)?????

Also, one more question is how can I implement "Save" button so item gets
saved into "Drafts"
folder????

Thank you in advance, Tomy.
 
S

Sue Mosher [MVP-Outlook]

Looks like you may have omitted the one newsgroup that covers Extended
MAPI --
microsoft.public.platformsdk.mapi
 

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