Fixed send example.
This commit is contained in:
parent
4754fd0fab
commit
64561ac5af
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user