9 cout << "\n*** mime_test ***\n\n";
13 cout << "calling init()\n";
14 PEP_STATUS status1 = init(&session);
15 assert(status1 == PEP_STATUS_OK);
17 cout << "init() completed.\n";
23 string bla2 = "my message to yöu";
24 cout << "encoding message…\n";
26 PEP_STATUS status2 = mime_encode_text(bla2.c_str(), NULL, NULL, &result2);
28 assert(status2 == PEP_STATUS_OK);
31 cout << result2 << "\n";
35 // testing multipart/alternative
37 string bla3 = "my message to yöu";
38 string html3 = "<html><body><p>my message to you</p></body></html>";
40 cout << "encoding message…\n";
42 PEP_STATUS status3 = mime_encode_text(bla3.c_str(), html3.c_str(), NULL, &result3);
44 assert(status3 == PEP_STATUS_OK);
47 cout << result3 << "\n";
51 cout << "calling release()\n";