Compartir a través de


CDocument::OnFileSendMail

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

void OnFileSendMail( );

Remarks

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.

Requirements

Header: afxwin.h

See Also

Concepts

CDocument Class

CDocument Members

Hierarchy Chart

CDocument::OnUpdateFileSendMail

COleDocument::OnFileSendMail

CDocument::OnSaveDocument