Product Logo

POP3it Pro

Email downloading made easy.

Functions
FunctionPOP3it_Adv_AddAccount
FunctionPOP3it_Adv_Connect
FunctionPOP3it_Adv_ConnectFile
FunctionPOP3it_Adv_Delete
FunctionPOP3it_Adv_DeleteAll
FunctionPOP3it_Adv_Disconnect
FunctionPOP3it_Adv_GetAccountOption
FunctionPOP3it_Adv_GetAttachment
FunctionPOP3it_Adv_GetAttachmentCount
FunctionPOP3it_Adv_GetAttachmentFileName
FunctionPOP3it_Adv_GetBody
FunctionPOP3it_Adv_GetDate
FunctionPOP3it_Adv_GetFullSource
FunctionPOP3it_Adv_GetHeader
FunctionPOP3it_Adv_GetMessageCount
FunctionPOP3it_Adv_GetSize
FunctionPOP3it_Adv_GetUniqueID
FunctionPOP3it_Adv_GoToMessage
FunctionPOP3it_Adv_HasBodyType
FunctionPOP3it_Adv_IsConnected
FunctionPOP3it_Adv_RemoveAccount
FunctionPOP3it_Adv_SaveAttachment
FunctionPOP3it_Adv_SetAccountOption
FunctionPOP3it_Adv_UndeleteAll
FunctionPOP3it_CheckAccount
FunctionPOP3it_CheckFile
FunctionPOP3it_Configure
FunctionPOP3it_ConfigureAccount
FunctionPOP3it_DisplayMessage
FunctionPOP3it_File_Copy
FunctionPOP3it_File_Delete
FunctionPOP3it_File_Exists
FunctionPOP3it_File_Export
FunctionPOP3it_File_Import
FunctionPOP3it_File_Move
FunctionPOP3it_File_Read
FunctionPOP3it_File_Rename
FunctionPOP3it_File_SelectWithDialog
FunctionPOP3it_File_Size
FunctionPOP3it_File_Timestamp
FunctionPOP3it_File_Write
FunctionPOP3it_Folder_Create
FunctionPOP3it_Folder_Delete
FunctionPOP3it_Folder_Exists
FunctionPOP3it_Folder_GetPath
FunctionPOP3it_Folder_List
FunctionPOP3it_Folder_Rename
FunctionPOP3it_Folder_SelectWithDialog
FunctionPOP3it_GetAccountNames
FunctionPOP3it_QuoteMessage
FunctionPOP3it_Register
FunctionPOP3it_StatusWindow
FunctionPOP3it_Version
FunctionPOP3it_VersionNumber

POP3it_Adv_GetBody

NamePOP3it_Adv_GetBody
Description

This function returns the Body or the Content of the current email. If you do not specify a Body Type, POP3it Pro will return the most fitting type to you. Otherwise, if you specify “Text” it will return Text portion of the current email; “HTML” would return the HTML portion of the current email; and “Enriched” would return the Enriched Text portion of the current email. If you specify a Body Type that does not exist, POP3it Pro will return nothing. (See POP3it_Adv_HasBodyType to check for the existence of a specific Body Type.) If you retrieve the “HTML” part of an email (if there is one) and that HTML part contains Inline Images, POP3it Pro will export those Images to an “Inline” folder inside the Account’s Attachment Path folder and update the HTML code to point to those images. If you then use “Export Field Contents” or POP3it_File_Export to save that HTML to a file, you should be able to view the HTML content in a web browser or in a FileMaker Web Viewer complete with the Inline Images.

Return TypeText
FormatPOP3it_Adv_GetBody ( BodyType )
Optional Parameters
BodyType

The Type of Body to return. Specify “Text”, “HTML”, or “Enriched”. If you do not specify this parameter, POP3it Pro will return the most fitting type to you (normally a Text body).

Examples
Example 1

Returns the best Body Type POP3it Pro finds in the current email.

POP3it_Adv_GetBody
Example 2

Returns the "HTML" part of the current email if there is one.

POP3it_Adv_GetBody( "HTML" )