April 24, 20178 yr Newbies Hello, I am currently using the email plugin and it reads the messages fine however I would like to extract just the text from the HTML message. Is there a function that does this? Basically I would like to copy what shows in the Webviewer of the HTML field. I am able to do this with a different plugin but it is not server compatible.
April 25, 20178 yr Hi Trinikal, Yes, the function to use is EmailReadMessageValue. You pass in the value that you would like to parse from the message. So if you just wanted the plain text of the email it would be EmailReadMessagValue("text"). This is dependent on if the sender included a plain text version of the email. If you want the HTML you can use EmailReadMessagValue("html") or EmailReadMessagValue("htmlRaw") if you don't want inline attachments to be converted to base64 data URLs. Please let me know if you have any questions!
Create an account or sign in to comment