Components Crossplatform Mac & Win Server Client Old Deprecated Guides Examples Videos
New in version: 10.4 10.5 11.0 11.1 11.2 11.3 11.4 11.5 12.0 12.1 Statistic FMM Blog
Parses an email from a file.
|EmailParser||5.3||✅ Yes||✅ Yes||✅ Yes||✅ Yes||✅ Yes|
|Path||Native file path.||"C:\Documents\Test.eml"|
Returns Reference number or error.
DescriptionParses an email from a file.
This is for emails stored as text file with eml file name extension.
If no error occurs, the parser will separate subject, html and plain text, attachments and inline graphics, all addresses and header entries. You can then use other functions to query values.
If you have EMLX files, please use Text.ReadEMLXFile function first to unpack them and pass the email source to EmailParser.Parse function.
This functionality needs libiconv. On macOS, iOS and Linux we try to load the library coming with the OS. If you use Windows or like to use a custom library, please use Plugin.LoadIconvLibrary function to load it before calling this function.
Without iconv library, only a minimum functionality is done by plugin directly to keep basic functionality working.
This function requires a native path. Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use FileDialog functions.
For Server be aware that server has limited permissions and may not be able to access all files on a computer.
- Version 12.0
Created 24th September 2015, last changed 22nd January 2021
Feedback: Report problem or ask question.
MBS Xojo blog