CNS Plug-ins

Port Guide: Classic SMTPit to SMTPit Pro

This document is for users who have developed databases using the Classic version of SMTPit and wish to upgrade to SMTPit Pro, which has new functions. By updating your databases to the new functions, you will be able to take full advantage of the new plug-in.

As of v5.1.0, Backward Compatibility has been removed from the plug-in.

Notes:

Note
The backward compatibility option does not work under all versions of FileMaker.

Mac
Works: FileMaker 7–13
Does not Work: FileMaker 14 (32-bit and 64-bit), FileMaker Pro 11.0v1 (update to 11.0v4)

Windows
Works: FileMaker 7–13, FileMaker 14 32-bit
Does not Work: FileMaker 14 64-bit

Example

Assume you have a calculation like the following that uses the Old Style Send function.

External(“SMTP-Send”, “Dialog=Yes, Transcript=Yes”)

First, we need to find the “SMTP-Send” function in the left column of the list at the end of this page. Then look at the right column to find the New Style equivalent is the “SMTPit_Send” function. Find that function in the Function Reference to see how it is used.

SMTPit_Send ( GetTranscript ; ShowResultDialog )

Next, we need to determine what parameters we are using in the Old Style function. To do so, find the Old Style function in the SMTPit External Function Reference section of the Classic SMTPit Guide. Looking at the Function Reference, we see the function looks like:

External(“SMTP-Send”, “Dialog=Yes, Transcript=Yes”)

The Classic Plug-in Function Browser tells us the “Dialog=Yes” argument of our Old Style Function will popup a dialog after the send informing us if the email was sent. Looking at the New Style Function Reference we see the New Style function’s ShowResultDialog parameter does the same thing, so we would set it to True. Looking back at the Old Style Function we also have the “Transcript=Yes” argument which returns interaction between the plug-in and the mail server. Now look back at the New Style function Reference and see the New Style function also has this feature by using the GetTranscript parameter, so set it to True as well. The New Style function would now look like:

SMTPit_Send( True ; True )

Conversion Chart

Below you will find an alphabetical list of old-style functions with their new-style equivalents.

Classic SMTPit to SMTPit Pro
Classic SMTPitSMTPit Pro
SMTP-AssignAllSMTPit_QuickSet
SMTP-AttachAppendSMTPit_SetAttachment
SMTP-AttachAssignSMTPit_SetAttachment
SMTP-AuthTypeAssignSMTPit_SetAuthentication
SMTP-BCCAppendSMTPit_SetBCC
SMTP-BCCAssignSMTPit_SetBCC
SMTP-BodyAppendSMTPit_SetBody
SMTP-BodyAssignSMTPit_SetBody
SMTP-CCAppendSMTPit_SetCC
SMTP-CCAssignSMTPit_SetCC
SMTP-ClearAllSMTPit_Clear
SMTP-ConnectSMTPit_Connect
SMTP-DisconnectSMTPit_Disconnect
SMTP-DlgAttachAppendSMTPit_SetAttachmentWithDialog
SMTP-DlgAttachAssignSMTPit_SetAttachmentWithDialog
SMTP-DlgHTMLImageAppendSMTPit_SetInlineImageWithDialog
SMTP-DlgHTMLImageAssignSMTPit_SetInlineImageWithDialog
SMTP-EmailHeaderAppendSMTPit_AddEmailHeader
SMTP-FileBodyAppendSMTPit_SetBodyWithFile
SMTP-FileBodyAssignSMTPit_SetBodyWithFile
SMTP-FileNameAcquireSMTPit_File_SelectFileWithDialog
SMTP-FolderAcquireSMTPit_File_SelectFolderWithDialog
SMTP-FooterAppendSMTPit_SetBodyFooter
SMTP-FooterAssignSMTPit_SetBodyFooter
SMTP-FromAssignSMTPit_SetFrom
SMTP-HeaderAppendSMTPit_SetBodyHeader
SMTP-HeaderAssignSMTPit_SetBodyHeader
SMTP-HideStatusSMTPit_StatusWindow
SMTP-HostAssignSMTPit_SetHost
SMTP-HTMLBodyAppendSMTPit_SetBody
SMTP-HTMLBodyAssignSMTPit_SetBody
SMTP-HTMLFileBodyAppendSMTPit_SetBodyWithFile
SMTP-HTMLFileBodyAssignSMTPit_SetBodyWithFile
SMTP-HTMLFooterAppendSMTPit_SetBodyFooter
SMTP-HTMLFooterAssignSMTPit_SetBodyFooter
SMTP-HTMLHeaderAppendSMTPit_SetBodyHeader
SMTP-HTMLHeaderAssignSMTPit_SetBodyHeader
SMTP-HTMLImageAppendSMTPit_SetInlineImage
SMTP-HTMLImageAssignSMTPit_SetInlineImage
SMTP-MoveStatusSMTPit_StatusWindow
SMTP-PasswordAssignSMTPit_SetAuthentication
SMTP-PathToDBAcquireSMTPit_File_GetPath
SMTP-PathToFMAcquireSMTPit_File_GetPath
SMTP-PortAssignSMTPit_SetHost
SMTP-PriorityAssignSMTPit_SetPriority
SMTP-RegisterSMTPit_Register
SMTP-SendSMTPit_Send
SMTP-ShowStatusSMTPit_StatusWindow
SMTP-SubjectAppendSMTPit_SetSubject
SMTP-SubjectAssignSMTPit_SetSubject
SMTP-ToAppendSMTPit_SetTo
SMTP-ToAssignSMTPit_SetTo
SMTP-UsernameAssignSMTPit_SetAuthentication
SMTP-VersionSMTPit_Version
-SMTPit_File_Copy
-SMTPit_File_Delete
-SMTPit_File_Exists
-SMTPit_File_Export
-SMTPit_File_Move
-SMTPit_File_Rename
-SMTPit_File_Size
-SMTPit_GetSendValue
-SMTPit_SendWithDialog
-SMTPit_SetCharSet
-SMTPit_SetReplyTo
-SMTPit_StyledTextToHTML