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

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().

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

Definition at line 171 of file llmail.cpp.

References gMailEnabled.

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

Definition at line 328 of file llmail.cpp.

References LLBase32::encode(), LLBlowfishCipher::encrypt(), LLUUID::mData, LLBlowfishCipher::requiredEncryptionSpace(), LLStringBase< char >::toLower(), and UUID_BYTES.

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(), and NULL.

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, and llwarns.

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.


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:28 2010 for Second Life Viewer by  doxygen 1.4.7