From 64561ac5af2e81c451487e574c137aa5b4fc7f26 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Wed, 27 Apr 2005 18:51:41 +0000 Subject: Fixed send example. --- examples/example6.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'examples/example6.cpp') 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("you@somewhere.com")); to.appendMailbox(new vmime::mailbox("somebody.else@anywhere.com")); - 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; -- cgit v1.2.3