CMailMessage::DeleteHeader Method  
 
BOOL DeleteHeader(
  LPCTSTR lpszHeader  
);

The DeleteHeader method deletes the specified header field from the message.

Parameters

lpszHeader
Pointer to a string which specifies the header field that will be deleted.

Return Value

If the method succeeds, the return value is non-zero. If the method fails, the return value is zero. To get extended error information, call GetLastError.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: csmsgv12.lib
Unicode: Implemented as Unicode and ANSI versions

See Also