MailMessage.h
上传用户:hebinsheng
上传日期:2015-04-30
资源大小:25k
文件大小:1k
源码类别:

ICQ弱点检测代码

开发平台:

Visual C++

  1. // MailMessage.h: interface for the CMailMessage class.
  2. // Copyright (c) 1998, Wes Clyburn
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_MAILMESSAGE_H__55DE48CC_BEA4_11D1_870E_444553540000__INCLUDED_)
  5. #define AFX_MAILMESSAGE_H__55DE48CC_BEA4_11D1_870E_444553540000__INCLUDED_
  6. #if _MSC_VER >= 1000
  7. #pragma once
  8. #endif // _MSC_VER >= 1000
  9. #include <afxtempl.h>
  10. class CMailMessage  
  11. {
  12. public:
  13. CMailMessage();
  14. virtual ~CMailMessage();
  15. int GetNumRecipients();
  16. BOOL GetRecipient( CString& sEmailAddress, CString& sFriendlyName, int nIndex = 0 );
  17. BOOL AddRecipient( LPCTSTR szEmailAddress, LPCTSTR szFriendlyName = "" );
  18. BOOL AddMultipleRecipients( LPCTSTR szRecipients = NULL );
  19. CString m_sFrom;
  20. CString m_sSubject;
  21. CString m_sHeader;
  22. CTime m_tDateTime;
  23. CString m_sBody;
  24. private:
  25. class CRecipient
  26. {
  27. public:
  28. CString m_sEmailAddress;
  29. CString m_sFriendlyName;
  30. };
  31. CArray <CRecipient, CRecipient&> m_Recipients;
  32. };
  33. #endif // !defined(AFX_MAILMESSAGE_H__55DE48CC_BEA4_11D1_870E_444553540000__INCLUDED_)