diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-01-22 16:36:59 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-01-22 16:36:59 (GMT) |
commit | fe6c55bf935449d28a697530b3c83b461be7bb48 (patch) | |
tree | c07d5910cff3daadaf04e59d32be187418bc2949 /src/uscxml/plugins/invoker/smtp | |
parent | 948fbc12c1b4e48a24b18a84878bd560cbaf91a7 (diff) | |
download | uscxml-fe6c55bf935449d28a697530b3c83b461be7bb48.zip uscxml-fe6c55bf935449d28a697530b3c83b461be7bb48.tar.gz uscxml-fe6c55bf935449d28a697530b3c83b461be7bb48.tar.bz2 |
Email Attachments and Prolog Version Fixes
Diffstat (limited to 'src/uscxml/plugins/invoker/smtp')
-rw-r--r-- | src/uscxml/plugins/invoker/smtp/SMTPInvoker.cpp | 4 | ||||
-rw-r--r-- | src/uscxml/plugins/invoker/smtp/SMTPInvoker.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/uscxml/plugins/invoker/smtp/SMTPInvoker.cpp b/src/uscxml/plugins/invoker/smtp/SMTPInvoker.cpp index 420ab52..9234fc5 100644 --- a/src/uscxml/plugins/invoker/smtp/SMTPInvoker.cpp +++ b/src/uscxml/plugins/invoker/smtp/SMTPInvoker.cpp @@ -53,7 +53,7 @@ Data SMTPInvoker::getDataModelVariables() { return data; } -size_t SMTPInvoker::readCurlData(void *ptr, size_t size, size_t nmemb, void *userdata) { +size_t SMTPInvoker::writeCurlData(void *ptr, size_t size, size_t nmemb, void *userdata) { if (!userdata) return 0; @@ -300,7 +300,7 @@ void SMTPInvoker::send(const SendRequest& req) { (curlError = curl_easy_setopt(_curl, CURLOPT_MAIL_RCPT, recipients)) == CURLE_OK || LOG(ERROR) << "Cannot set mail recipient: " << curl_easy_strerror(curlError); - (curlError = curl_easy_setopt(_curl, CURLOPT_READFUNCTION, SMTPInvoker::readCurlData)) == CURLE_OK || + (curlError = curl_easy_setopt(_curl, CURLOPT_READFUNCTION, SMTPInvoker::writeCurlData)) == CURLE_OK || LOG(ERROR) << "Cannot register read function: " << curl_easy_strerror(curlError); (curlError = curl_easy_setopt(_curl, CURLOPT_READDATA, ctx)) == CURLE_OK || LOG(ERROR) << "Cannot register userdata for read function: " << curl_easy_strerror(curlError); diff --git a/src/uscxml/plugins/invoker/smtp/SMTPInvoker.h b/src/uscxml/plugins/invoker/smtp/SMTPInvoker.h index f3876bd..1167153 100644 --- a/src/uscxml/plugins/invoker/smtp/SMTPInvoker.h +++ b/src/uscxml/plugins/invoker/smtp/SMTPInvoker.h @@ -65,7 +65,7 @@ protected: std::list<std::string> getAtoms(std::list<Data> list); void getAttachments(std::list<Data> list, std::list<Data>& attachments); - static size_t readCurlData(void *ptr, size_t size, size_t nmemb, void *userdata); + static size_t writeCurlData(void *ptr, size_t size, size_t nmemb, void *userdata); }; #ifdef BUILD_AS_PLUGINS |