SendFileTo.h 796 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2014, Oculus VR, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. *
  9. */
  10. // Mostly from http://www.codeproject.com/internet/SendTo.asp and
  11. // Also see http://www.codeguru.com/cpp/i-n/network/messaging/article.php/c5417/
  12. #ifndef __SENDFILETO_H__
  13. #define __SENDFILETO_H__
  14. #include "WindowsIncludes.h"
  15. #include <mapi.h>
  16. class CSendFileTo
  17. {
  18. public:
  19. bool SendMail(HWND hWndParent, const char *strAttachmentFilePath, const char *strAttachmentFileName,const char *strSubject, const char *strBody, const char *strRecipient);
  20. };
  21. #endif
粤ICP备19079148号