SendEmail.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // SendEmail.h Version 1.0
  2. //
  3. // Author: Hans Dietrich
  4. // [email protected]
  5. //
  6. // This software is released into the public domain.
  7. // You are free to use it in any way you like, except
  8. // that you may not sell this source code.
  9. //
  10. // This software is provided "as is" with no expressed
  11. // or implied warranty. I accept no liability for any
  12. // damage or loss of business that this software may cause.
  13. //
  14. ///////////////////////////////////////////////////////////////////////////////
  15. #ifndef SENDEMAIL_H
  16. #define SENDEMAIL_H
  17. #include <tchar.h>
  18. #include <windows.h>
  19. const wchar_t* GetFilePart(LPCWSTR lpszFile);
  20. BOOL SendEmail(HWND hWnd, // parent window, must not be NULL
  21. LPCTSTR lpszTo, // must NOT be NULL or empty
  22. LPCTSTR lpszToName, // may be NULL
  23. LPCTSTR lpszSubject, // may be NULL
  24. LPCTSTR lpszMessage, // may be NULL
  25. LPCTSTR lpszAttachment); // may be NULL
  26. #define _wcstombsz xwcstombsz
  27. #define _mbstowcsz xmbstowcsz
  28. int xwcstombsz(char* mbstr, const wchar_t* wcstr, size_t count);
  29. int xmbstowcsz(wchar_t* wcstr, const char* mbstr, size_t count);
  30. #endif //SENDEMAIL_H