Shadowrun: Awakened 29 September 2011 - Build 871
EmailSender.h
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 #include "NativeFeatureIncludes.h"
00009 #if _RAKNET_SUPPORT_EmailSender==1 && _RAKNET_SUPPORT_TCPInterface==1
00010 
00011 #ifndef __EMAIL_SENDER_H
00012 #define __EMAIL_SENDER_H
00013 
00014 #include "RakNetTypes.h"
00015 #include "RakMemoryOverride.h"
00016 #include "Export.h"
00017 #include "Rand.h"
00018 #include "TCPInterface.h"
00019 
00020 namespace RakNet
00021 {
00023 class FileList;
00024 class TCPInterface;
00025 
00027 class RAK_DLL_EXPORT EmailSender
00028 {
00029 public:
00030     // GetInstance() and DestroyInstance(instance*)
00031     STATIC_FACTORY_DECLARATIONS(EmailSender)
00032 
00033     
00034 
00035 
00036 
00037 
00038 
00039 
00040 
00041 
00042 
00043 
00044 
00045 
00046     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);
00047 
00048 protected:
00049     const char *GetResponse(TCPInterface *tcpInterface, const SystemAddress &emailServer, bool doPrintf);
00050     RakNetRandom rakNetRandom;
00051 };
00052 
00053 } // namespace RakNet
00054 
00055 #endif
00056 
00057 
00058 #endif // _RAKNET_SUPPORT_*

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net