From b886cd48649c09561417b378b9c1f932d6e72dd8 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Thu, 11 Jul 2013 18:06:26 +0200 Subject: Refactored the way embedded objects are referenced in MHTML. --- examples/example3.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'examples/example3.cpp') diff --git a/examples/example3.cpp b/examples/example3.cpp index 038f3ba6..31e26534 100644 --- a/examples/example3.cpp +++ b/examples/example3.cpp @@ -86,12 +86,13 @@ int main() vmime::create (fileReader->getInputStream(), imageFile->getLength()); - const vmime::string cid = textPart.addObject(imageCts, - vmime::mediaType(vmime::mediaTypes::IMAGE, vmime::mediaTypes::IMAGE_JPEG)); + vmime::ref obj = textPart.addObject + (imageCts, vmime::mediaType(vmime::mediaTypes::IMAGE, vmime::mediaTypes::IMAGE_JPEG)); // -- message text textPart.setText(vmime::create - (vmime::string("This is the HTML text.
"))); + (vmime::string("This is the HTML text.
" + "getReferenceId() + vmime::string("\"/>"))); textPart.setPlainText(vmime::create ("This is the plain text (without HTML formatting).")); -- cgit v1.2.3