email.send (c->mail_server(), c->mail_port(), c->mail_user(), c->mail_password());
} catch (...) {
if (log) {
+ log->log ("Email content follows", LogEntry::TYPE_DEBUG_EMAIL);
+ log->log (email.email(), LogEntry::TYPE_DEBUG_EMAIL);
+ log->log ("Email session follows", LogEntry::TYPE_DEBUG_EMAIL);
log->log (email.notes(), LogEntry::TYPE_DEBUG_EMAIL);
}
throw;
}
if (log) {
+ log->log ("Email content follows", LogEntry::TYPE_DEBUG_EMAIL);
+ log->log (email.email(), LogEntry::TYPE_DEBUG_EMAIL);
+ log->log ("Email session follows", LogEntry::TYPE_DEBUG_EMAIL);
log->log (email.notes(), LogEntry::TYPE_DEBUG_EMAIL);
}
}
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: