Shadowrun: Awakened 29 September 2011 - Build 871
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
RakNet::EmailSender Class Reference

Rudimentary class to send email from code.

#include <EmailSender.h>

List of all members.

Public Member Functions

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)
 Sends an email.

Static Public Member Functions

static void DestroyInstance (EmailSender *i)
static EmailSenderGetInstance (void)

Protected Member Functions

const char * GetResponse (TCPInterface *tcpInterface, const SystemAddress &emailServer, bool doPrintf)

Protected Attributes

RakNetRandom rakNetRandom

Detailed Description

Definition at line 27 of file EmailSender.h.


Member Function Documentation

static void RakNet::EmailSender::DestroyInstance ( EmailSender i) [static]
static EmailSender* RakNet::EmailSender::GetInstance ( void  ) [static]
const char* RakNet::EmailSender::GetResponse ( TCPInterface tcpInterface,
const SystemAddress emailServer,
bool  doPrintf 
) [protected]
const char* RakNet::EmailSender::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 
)
Parameters:
[in]hostAddressThe address of the email server.
[in]hostPortThe port of the email server (usually 25)
[in]senderThe email address you are sending from.
[in]recipientThe email address you are sending to.
[in]senderNameThe email address you claim to be sending from
[in]recipientNameThe email address you claim to be sending to
[in]subjectEmail subject
[in]bodyEmail body
[in]attachedFilesList of files to attach to the email. (Can be 0 to send none).
[in]doPrintftrue to output SMTP info to console(for debugging?)
[in]passwordUsed if the server uses AUTHENTICATE PLAIN over TLS (such as gmail)
Returns:
0 on success, otherwise a string indicating the error message

Member Data Documentation

Definition at line 50 of file EmailSender.h.


The documentation for this class was generated from the following file:

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