EmailSender Class Reference

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

#include <EmailSender.h>

List of all members.

Public Member Functions

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)


Detailed Description

Rudimentary class to send email from code.

Member Function Documentation

char * 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 
)

Sends an email

Parameters:
[in] hostAddress The address of the email server.
[in] hostPort The port of the email server (usually 25)
[in] sender The email address you are sending from.
[in] recipient The email address you are sending to.
[in] senderName The email address you claim to be sending from
[in] recipientName The email address you claim to be sending to
[in] subject Email subject
[in] body Email body
[in] attachedFiles List of files to attach to the email. (Can be 0 to send none).
[in] doPrintf true to output SMTP info to console(for debugging?)
Returns:
0 on success, otherwise a string indicating the error message


The documentation for this class was generated from the following files:
Generated on Mon Mar 31 21:15:53 2008 for RakNet by  doxygen 1.5.4