LLMail Class Reference

#include <llmail.h>

List of all members.

Static Public Member Functions

static void init (const std::string &hostname, apr_pool_t *pool)
static void enable (bool mail_enabled)
static BOOL send (const char *from_name, const char *from_address, const char *to_name, const char *to_address, const char *subject, const char *message)
static std::string buildSMTPTransaction (const char *from_name, const char *from_address, const char *to_name, const char *to_address, const char *subject)
 build the complete smtp transaction & header for use in an mail.
static bool send (const std::string &header, const std::string &message, const char *from_address, const char *to_address)
 send an email with header and body.
static std::string encryptIMEmailAddress (const LLUUID &from_agent_id, const LLUUID &to_agent_id, U32 time, const U8 *secret, size_t secret_size)


Detailed Description

Definition at line 39 of file llmail.h.


Member Function Documentation

void LLMail::init ( const std::string &  hostname,
apr_pool_t pool 
) [static]

Definition at line 143 of file llmail.cpp.

References gMailPool, gMailSocket, gSockAddr, ll_apr_warn_status(), NULL, and indra::ipc::saranwrap::status().

Here is the call graph for this function:

void LLMail::enable ( bool  mail_enabled  )  [static]

Definition at line 171 of file llmail.cpp.

References gMailEnabled.

BOOL LLMail::send ( const char *  from_name,
const char *  from_address,
const char *  to_name,
const char *  to_address,
const char *  subject,
const char *  message 
) [static]

Definition at line 117 of file llmail.cpp.

References buildSMTPTransaction(), FALSE, and TRUE.

Here is the call graph for this function:

std::string LLMail::buildSMTPTransaction ( const char *  from_name,
const char *  from_address,
const char *  to_name,
const char *  to_address,
const char *  subject 
) [static]

build the complete smtp transaction & header for use in an mail.

Parameters:
from_name The name of the email sender
from_address The email address for the sender
to_name The name of the email recipient
to_name The email recipient address
subject The subject of the email
Returns:
Returns the complete SMTP transaction mail header.

Definition at line 177 of file llmail.cpp.

References llendl, llinfos, and valid_subject_chars().

Referenced by send().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLMail::send ( const std::string &  header,
const std::string &  message,
const char *  from_address,
const char *  to_address 
) [static]

send an email with header and body.

Parameters:
header The email header. Use build_mail_header().
message The unescaped email message.
from_address Used for debugging
to_address Used for debugging
Returns:
Returns true if the message could be sent.

Definition at line 232 of file llmail.cpp.

References connect_smtp(), disconnect_smtp(), gMailEnabled, gMailSocket, gSockAddr, i, ll_apr_warn_status(), LL_MAX_KNOWN_GOOD_MAIL_SIZE, llendl, llinfos, llwarns, and indra::ipc::saranwrap::status().

Here is the call graph for this function:

std::string LLMail::encryptIMEmailAddress ( const LLUUID from_agent_id,
const LLUUID to_agent_id,
U32  time,
const U8 secret,
size_t  secret_size 
) [static]


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

Generated on Fri May 16 08:51:54 2008 for SecondLife by  doxygen 1.5.5