RakNet  4.0
Public Member Functions | List of all members
RakNet::EmailSender Class Reference

Rudimentary class to send email from code. More...

#include <EmailSender.h>

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.
 

Detailed Description

Rudimentary class to send email from code.

Member Function Documentation

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 
)

Sends an email.

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

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