CDocument::OnFileSendMail

void OnFileSendMail( );

Remarks

Sends a message via the resident mail host (if any) with the document as an attachment. 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.

A special implementation of OnFileSendMail for COleDocument handles compound files correctly.

CDocument supports sending your document via mail if mail support (MAPI) is present. See the articles MAPI Topics and MAPI Support in MFC in Visual C++ Programmer's Guide.

CDocument OverviewClass MembersHierarchy Chart

See Also   CDocument::OnUpdateFileSendMail, COleDocument::OnFileSendMail, CDocument::OnSaveDocument