In an e-mail you may have two versions of the same text : plain text and HTML.UserOfPure wrote:Hi, yes, it works now with b=PurePOP3_GetMessageTextInMemory(#True) instead. But that's weird, because I've been sending the same types of mail over and over so far, and this is the first time I've had to use the #True flag with it.
Anyway, is there any harm in using b=PurePOP3_GetMessageTextInMemory(#True) all the time, even if the mail is NOT html? Or should I always check first with PurePOP3_IsMessageHTML() and then do an If/Then accordingly?
PurePOP3_GetMessageTextInMemory([#False]) is searching for 'text/plain', PurePOP3_GetMessageTextInMemory(#True) for 'text/html'.
If PurePOP3_GetMessageTextInMemory() fails, it may be because there is no text (only attachments ?), or because the text is only available as HTML.
Note : even if set to HTML mode, most e-mail clients also send a 'text/plain' version ; this explains that PurePOP3_GetMessageTextInMemory([#False]) rarely fails.