SLikeNet  0.1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EmailSender.h
Go to the documentation of this file.
1 /*
2  * Original work: 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  * RakNet License.txt file in the licenses directory of this source tree. An additional grant
7  * of patent rights can be found in the RakNet Patents.txt file in the same directory.
8  *
9  *
10  * Modified work: Copyright (c) 2017, SLikeSoft UG (haftungsbeschränkt)
11  *
12  * This source code was modified by SLikeSoft. Modifications are licensed under the MIT-style
13  * license found in the license.txt file in the root directory of this source tree.
14  */
15 
19 
20 #include "NativeFeatureIncludes.h"
21 #if _RAKNET_SUPPORT_EmailSender==1 && _RAKNET_SUPPORT_TCPInterface==1 && _RAKNET_SUPPORT_FileOperations==1
22 
23 #ifndef __EMAIL_SENDER_H
24 #define __EMAIL_SENDER_H
25 
26 #include "types.h"
27 #include "memoryoverride.h"
28 #include "Export.h"
29 #include "Rand.h"
30 #include "TCPInterface.h"
31 
32 namespace SLNet
33 {
35 class FileList;
36 class TCPInterface;
37 
40 {
41 public:
42  // GetInstance() and DestroyInstance(instance*)
44 
45 
46 
47 
48 
49 
50 
51 
52 
53 
54 
55 
56 
57 
58  const char *Send(const char *hostAddress, unsigned short hostPort, const char *sender, const char *recipient, const char *senderName, const char *recipientName, const char *subject, const char *body, FileList *attachedFiles, bool doPrintf, const char *password);
59 
60 protected:
61  const char *GetResponse(TCPInterface *tcpInterface, const SystemAddress &emailServer, bool doPrintf);
63 };
64 
65 } // namespace SLNet
66 
67 #endif
68 
69 
70 #endif // _RAKNET_SUPPORT_*