summaryrefslogtreecommitdiff
path: root/src/lib/emailer.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-04-08 23:49:26 +0100
committerCarl Hetherington <cth@carlh.net>2016-04-08 23:49:26 +0100
commita45c4ac7032ac5c435105190b6fa947879c0610a (patch)
tree15df8570c0de11d1451100892ff003bb1437fa7a /src/lib/emailer.h
parent4a994bc4d9ce9afefdfb668bf9fc0280b1f7c66d (diff)
Log full email body to DEBUG_EMAIL.
Diffstat (limited to 'src/lib/emailer.h')
-rw-r--r--src/lib/emailer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/emailer.h b/src/lib/emailer.h
index 9d799c81c..5924e79b1 100644
--- a/src/lib/emailer.h
+++ b/src/lib/emailer.h
@@ -38,6 +38,11 @@ public:
size_t get_data (void* ptr, size_t size, size_t nmemb);
int debug (CURL* curl, curl_infotype type, char* data, size_t size);
+ /** @return full email, after send() has been called */
+ std::string email () const {
+ return _email;
+ }
+
static std::string address_list (std::list<std::string> addresses);
private: