I have the following code listed below. I am trying to get the information in the body of an email (which is sent in a text-like format).
Can someone point me in the right direction as to how I can do this?
bdy = parsedMsg->getBody();
string PrintDate (hdr->Date()->getValue()->generate());
string PrintSubject (hdr->Subject()->getValue()->generate());
vmime::ref <const vmime::contentHandler> attCth = bdy->getContents();
strcpy( test_out, attDataOut.c_str());
print_err( __FILE__, __LINE__, "----------- THE BODY OF THE EMAIL IS ------------- \n");
print_err( __FILE__, __LINE__, test_out);
Please close as I had placed the message in the wrong forum.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.