diff options
author | Vincent Richard <[email protected]> | 2005-04-27 18:51:41 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-04-27 18:51:41 +0000 |
commit | 64561ac5af2e81c451487e574c137aa5b4fc7f26 (patch) | |
tree | 5bf0f8ae67bf47edd95142ea165ebbd2189994c5 /examples/example6.cpp | |
parent | Ignore filenames starting with '.' for message files. (diff) | |
download | vmime-64561ac5af2e81c451487e574c137aa5b4fc7f26.tar.gz vmime-64561ac5af2e81c451487e574c137aa5b4fc7f26.zip |
Fixed send example.
Diffstat (limited to 'examples/example6.cpp')
-rw-r--r-- | examples/example6.cpp | 6 |
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; |