www.pudn.com > MailAgent.rar > MailMessage.h
#if !defined(AFX_MAILMESSAGE_H__55DE48CC_BEA4_11D1_870E_444553540000__INCLUDED_) #define AFX_MAILMESSAGE_H__55DE48CC_BEA4_11D1_870E_444553540000__INCLUDED_ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 #includeclass CMailMessage { public: CMailMessage(); virtual ~CMailMessage(); void FormatMessage(); int GetNumRecipients(); BOOL GetRecipient( CString& sEmailAddress, CString& sFriendlyName, int nIndex = 0 ); BOOL AddRecipient( LPCTSTR szEmailAddress, LPCTSTR szFriendlyName = "" ); BOOL AddMultipleRecipients( LPCTSTR szRecipients = NULL ); UINT GetCharsPerLine(); void SetCharsPerLine( UINT nCharsPerLine ); CString m_sFrom; CString m_sSubject; CString m_sEnvelope; CString m_sHeader; CTime m_tDateTime; CString m_sBody; BOOL DecodeHeader(); void DecodeBody(); private: UINT m_nCharsPerLine; class CRecipient { public: CString m_sEmailAddress; CString m_sFriendlyName; }; CArray m_Recipients; protected: virtual void prepare_header(); virtual void prepare_body(); virtual void end_header(); virtual void start_header(); virtual void add_header_line( LPCTSTR szHeaderLine ); }; #endif // !defined(AFX_MAILMESSAGE_H__55DE48CC_BEA4_11D1_870E_444553540000__INCLUDED_)