aboutsummaryrefslogtreecommitdiffstats
path: root/examples/example6.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example6.cpp')
-rw-r--r--examples/example6.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/example6.cpp b/examples/example6.cpp
index 823ff3a0..3f3f3f37 100644
--- a/examples/example6.cpp
+++ b/examples/example6.cpp
@@ -156,8 +156,10 @@ int main()
to.appendMailbox(new vmime::mailbox("[email protected]"));
to.appendMailbox(new vmime::mailbox("[email protected]"));
- std::istringstream iss("[MESSAGE DATA: HEADER + BODY]");
- tr->send(from, to, iss);
+ vmime::string str("[MESSAGE DATA: HEADER + BODY]");
+ vmime::utility::inputStreamStringAdapter vis(str);
+
+ tr->send(from, to, vis, str.length());
// Note: you could also write this:
// vmime::message msg;