Export (0) Print
Expand All

COleDocument::OnFileSendMail 

Sends a message via the resident mail host (if any) with the document as an attachment.


afx_msg void OnFileSendMail( );

OnFileSendMail calls OnSaveDocument to serialize (save) untitled and modified documents to a temporary file, which is then sent via electronic mail. If the document has not been modified, a temporary file is not needed; the original is sent. OnFileSendMail loads MAPI32.DLL if it has not already been loaded.

Unlike the implementation of OnFileSendMail for CDocument, this function handles compound files correctly.

For more information, see the MAPI Topics and MAPI Support in MFC articles..

Community Additions

ADD
Show:
© 2014 Microsoft