Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
680 B

  1. #pragma once
  2. #include "global.h"
  3. // for CDO COM. IMessage etc.
  4. // #import <cdosys.dll> no_namespace
  5. // instead of importing the type library, include the standard type library header
  6. #include "cdosys.tlh"
  7. typedef struct stMailParameters {
  8. _TCHAR szFrom[MAX_PATH];
  9. _TCHAR szTo[MAX_PATH];
  10. _TCHAR szServerName[MAX_PATH];
  11. ULONG ulFailures;
  12. ULONG ulInterval;
  13. ULONG ulCurrentTimestamp;
  14. }StructMailParams;
  15. class CSMTP {
  16. private:
  17. // SMTP message pointer
  18. IMessagePtr pIMsg;
  19. public:
  20. BOOL InitSMTP();
  21. // send mail to the customer
  22. BOOL SendMail(StructMailParams& stMailParams);
  23. // release all the associated resources
  24. BOOL SMTPCleanup();
  25. };