Fixed send example.

This commit is contained in:
Vincent Richard 2005-04-27 18:51:41 +00:00
parent 4754fd0fab
commit 64561ac5af

View File

@ -156,8 +156,10 @@ int main()
to.appendMailbox(new vmime::mailbox("you@somewhere.com")); to.appendMailbox(new vmime::mailbox("you@somewhere.com"));
to.appendMailbox(new vmime::mailbox("somebody.else@anywhere.com")); to.appendMailbox(new vmime::mailbox("somebody.else@anywhere.com"));
std::istringstream iss("[MESSAGE DATA: HEADER + BODY]"); vmime::string str("[MESSAGE DATA: HEADER + BODY]");
tr->send(from, to, iss); vmime::utility::inputStreamStringAdapter vis(str);
tr->send(from, to, vis, str.length());
// Note: you could also write this: // Note: you could also write this:
// vmime::message msg; // vmime::message msg;