diff options
author | Vincent Richard <[email protected]> | 2005-01-28 17:50:53 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-01-28 17:50:53 +0000 |
commit | 4ae97ddb0957c626a01682e24c68710e608bcc43 (patch) | |
tree | b81b4898dbfae5a81a6ca6820c7530bc39acf3e9 /examples/example3.cpp | |
parent | Fixed bug with signed/unsigned char. (diff) | |
download | vmime-4ae97ddb0957c626a01682e24c68710e608bcc43.tar.gz vmime-4ae97ddb0957c626a01682e24c68710e608bcc43.zip |
Splitted 'contentHandler' into three classes: 'emptyContentHandler', 'stringContentHandler' and 'streamContentHandler'.
Diffstat (limited to 'examples/example3.cpp')
-rw-r--r-- | examples/example3.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/example3.cpp b/examples/example3.cpp index 29211865..9638356b 100644 --- a/examples/example3.cpp +++ b/examples/example3.cpp @@ -73,8 +73,8 @@ int main() vmime::mediaType(vmime::mediaTypes::IMAGE, vmime::mediaTypes::IMAGE_JPEG)); // -- message text - textPart.setText(vmime::contentHandler(vmime::string("This is the <b>HTML text</b>.<br/><img src=\"") + cid + vmime::string("\"/>"))); - textPart.setPlainText(vmime::contentHandler(vmime::string("This is the plain text (without HTML formatting)."))); + textPart.setText(vmime::stringContentHandler(vmime::string("This is the <b>HTML text</b>.<br/><img src=\"") + cid + vmime::string("\"/>"))); + textPart.setPlainText(vmime::stringContentHandler("This is the plain text (without HTML formatting).")); // Construction vmime::message* msg = mb.construct(); |