#include <llmail.h>
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) |
Definition at line 39 of file llmail.h.
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.
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 |
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] |
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.
header | The email header. Use build_mail_header(). | |
message | The unescaped email message. | |
from_address | Used for debugging | |
to_address | Used for debugging |
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] |