diff options
author | Jacek Antonelli | 2008-12-01 17:39:58 -0600 |
---|---|---|
committer | Jacek Antonelli | 2008-12-01 17:40:06 -0600 |
commit | 7abecb48babe6a6f09bf6692ba55076546cfced9 (patch) | |
tree | 8d18a88513fb97adf32c10aae78f4be1984942db /linden/indra/llmessage/llmail.h | |
parent | Second Life viewer sources 1.21.6 (diff) | |
download | meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.zip meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.gz meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.bz2 meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.xz |
Second Life viewer sources 1.22.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llmessage/llmail.h | 61 |
1 files changed, 39 insertions, 22 deletions
diff --git a/linden/indra/llmessage/llmail.h b/linden/indra/llmessage/llmail.h index 86b7793..018e180 100644 --- a/linden/indra/llmessage/llmail.h +++ b/linden/indra/llmessage/llmail.h | |||
@@ -34,7 +34,7 @@ | |||
34 | 34 | ||
35 | typedef struct apr_pool_t apr_pool_t; | 35 | typedef struct apr_pool_t apr_pool_t; |
36 | 36 | ||
37 | class LLUUID; | 37 | #include "llsd.h" |
38 | 38 | ||
39 | class LLMail | 39 | class LLMail |
40 | { | 40 | { |
@@ -45,34 +45,51 @@ public: | |||
45 | // Allow all email transmission to be disabled/enabled. | 45 | // Allow all email transmission to be disabled/enabled. |
46 | static void enable(bool mail_enabled); | 46 | static void enable(bool mail_enabled); |
47 | 47 | ||
48 | // returns TRUE if the call succeeds, FALSE otherwise. | 48 | /** |
49 | // | 49 | * @brief send an email |
50 | // Results in: | 50 | * @param from_name The name of the email sender |
51 | // From: "from_name" <from_address> | 51 | * @param from_address The email address for the sender |
52 | // To: "to_name" <to_address> | 52 | * @param to_name The name of the email recipient |
53 | // Subject: subject | 53 | * @param to_address The email recipient address |
54 | // message | 54 | * @param subject The subject of the email |
55 | static BOOL send(const char* from_name, const char* from_address, | 55 | * @param headers optional X-Foo headers in an llsd map. |
56 | const char* to_name, const char* to_address, | 56 | * @return Returns TRUE if the call succeeds, FALSE otherwise. |
57 | const char* subject, const char* message); | 57 | * |
58 | * Results in: | ||
59 | * From: "from_name" <from_address> | ||
60 | * To: "to_name" <to_address> | ||
61 | * Subject: subject | ||
62 | * | ||
63 | * message | ||
64 | */ | ||
65 | static BOOL send( | ||
66 | const char* from_name, | ||
67 | const char* from_address, | ||
68 | const char* to_name, | ||
69 | const char* to_address, | ||
70 | const char* subject, | ||
71 | const char* message, | ||
72 | const LLSD& headers = LLSD()); | ||
58 | 73 | ||
59 | /** | 74 | /** |
60 | * @brief build the complete smtp transaction & header for use in an | 75 | * @brief build the complete smtp transaction & header for use in an |
61 | * mail. | 76 | * mail. |
62 | * | 77 | * |
63 | * @param from_name The name of the email sender | 78 | * @param from_name The name of the email sender |
64 | * @param from_address The email address for the sender | 79 | * @param from_address The email address for the sender |
65 | * @param to_name The name of the email recipient | 80 | * @param to_name The name of the email recipient |
66 | * @param to_name The email recipient address | 81 | * @param to_address The email recipient address |
67 | * @param subject The subject of the email | 82 | * @param subject The subject of the email |
68 | * @return Returns the complete SMTP transaction mail header. | 83 | * @param headers optional X-Foo headers in an llsd map. |
69 | */ | 84 | * @return Returns the complete SMTP transaction mail header. |
85 | */ | ||
70 | static std::string buildSMTPTransaction( | 86 | static std::string buildSMTPTransaction( |
71 | const char* from_name, | 87 | const char* from_name, |
72 | const char* from_address, | 88 | const char* from_address, |
73 | const char* to_name, | 89 | const char* to_name, |
74 | const char* to_address, | 90 | const char* to_address, |
75 | const char* subject); | 91 | const char* subject, |
92 | const LLSD& headers = LLSD()); | ||
76 | 93 | ||
77 | /** | 94 | /** |
78 | * @brief send an email with header and body. | 95 | * @brief send an email with header and body. |