Product Logo

SMTPit Pro

Next Generation Email plug-in

Functions

SMTPit_MergeText

NameSMTPit_MergeText
Description

With SMTPit Pro, you can use Merge Fields in your email messages. A merge field is a tag representing a field which will get replaced with the field’s contents when the message is sent. For example, if you have a field called “Name”, you can represent this field in your email message as “<<Name>>”. If your “Name” field happens to be in a table called “Contacts”, then you would use “<<Contacts::Name>>” as your merge field tag. If the value in the “Name” field is “Joe Cool”, then SMTPit Pro will replace “<<Name>>” with the text “Joe Cool” when the email is sent.

To help you preview what an email message might look like after it is merged, we have included the “SMTPit_MergeText” function. Remember, this function is only for previewing, there is no need to include it in your send mail calculations.

Merge fields can be used in the subject, header, body, and footer of your email messages. SMTPit Pro will automatically replace merge fields with their corresponding field values when sending a message. If SMTPit Pro cannot find the field you are trying to reference, it will place a question mark “?” in place of the merge field.

Return TypeText
FormatSMTPit_MergeText ( Text )
Required Parameters
Text

Your Text that contains Merge Fields.

Example
Example 1

Returns the "Body" field text with all merge fields replaced with their corresponding values.

SMTPit_MergeText( Body )