Home Products Downloads News Store Support

Conditional messages - MaxBulk Mailer v7 User Guide | Bulk e-mail and mail-merge

Conditional messages - MaxBulk Mailer v7 User Guide

Bulk e-mail and mail-merge

Compatible with MS Windows Compatible with MacOS

11.- Conditional messages

MaxBulk Mailer offers the possibility to add conditional statements to your message. A conditional statement is a set of instructions that you can use to modify your message contents depending on the recipient. This is particularly handy if you need to change your message greeting for example depending on the recipient gender. To insert a conditional statement, use the button on the right of the tag pull-down menu, choose the tag to be used in the condition from the tag pull-down menu, the operator, the value to compare the tag with and the result (the text you want to be used if the condition is verified).

Screenshot

Available operators are:

Operator
Meaning
*
contains
!*
doesn't contain
=
is equal to
<>
is not equal to
#?
starts with
?#
ends with
>
is greater than
<
is less than
>=
is greater or equal to
<=
is less or equal to

You can write as many rules as you need using the AND and OR instructions and IF, ELSEIF and ELSE switches inside the same conditional statement. A rule is made of a tag, an operator, a value to compare with and a result.

An example of a conditional statement, to customize your messages depending on the recipient's gender might be:

<IF [[Gender]] = "M" <AND> [[Surname]] <> "">Dear Mr. [Surname],
<ELSEIF [[Gender]] = "F" <AND> [[Surname]] <> "">Dear Mrs. [Surname],
<ELSE>Dear Friend,</IF>

This example contains 4 rules. We have renamed an optional field to 'Gender'. In the 'Gender' column we have placed a letter 'M' or 'F' for Male and Female. At delivery time MaxBulk Mailer will choose from: 'Dear Mr. [Surname]', 'Dear Mrs. [Surname]' or 'Dear Friends' depending on which condition is verified first. Of course you can write and modify the conditional statements manually, just follow a few simple guidelines:

New paragraph A conditional statement always begins with a <IF tag and ends with a </IF> tag.
New paragraph When they are placed inside a rule tags should be always surrounded with double brackets like in [[Gender]] .
New paragraph Use as many <AND> and <OR> instructions as needed. Parenthesis are no allowed.
New paragraph Use as many <ELSEIF switches as you need following the same syntax as with the <IF tag.
New paragraph The <ELSE> tag is optional and has to be placed at the end. Only one <ELSE> tag is allowed per statement.
New paragraph Available operators are *, !*, =, <>, #?, ?#, >, <, >= and <= according to the table above.
New paragraph Place the value of the rule between double quotes and end with a ">". No spaces are allowed before the ">".
New paragraph Type the text to be used if the condition is verified.
New paragraph Despite we have used colors in the example above, styles are not allowed in the statement, only in the result.

You can set tags data type globally from the preferences or just for the current document using the 'Edit | Rename Tags' menu. Available types are 'Text', 'Number', 'Date' and 'Boolean'. All tags are of type 'Text' by default. If you set a tag data type to 'Number' you will be able to use conditional statements with true numeric '>', '<' , ">=" and '<=' operators. The same applies to the 'Date' and 'Boolean' types however you have to make sure you set dates following your operating system date format (MM/DD/YYYY, DD/MM/YYYY....). A 'Boolean' field can accept only two values, you have the choice between using yes/no, True/False or 1/0.



Stan Busk Stan Busk
December 16, 2020






Recent questions from our MaxBulk Mailer users
  Is Maxprog software prepared for macOS 11 Big Sur? NEW Screenshot
  How to transfer email lists between MaxBulk Mailer copies NEW Screenshot
  Images are missing in the message preview NEW Screenshot
  How to send an email with a picture in the body NEW YouTube Video
  Mail-merge sender data using tags NEW YouTube Video
  I set up my bulk email message but authentication fails NEW YouTube Video
  How can I send Base64 encoded messages with MaxBulk Mailer? NEW YouTube Video
  How do I use Mandrill for sending emails NEW Screenshot
  Emails not delivered despite successful delivery report NEW YouTube Video
  Do I need a mail server account to use MaxBulk Mailer? UPDATED YouTube Video
  How many emails can we send in a single click? UPDATED YouTube Video
  What does 'relay not permitted' mean? UPDATED YouTube Video
  Do I need my own SMTP server to use MaxBulk Mailer? UPDATED YouTube Video
  We want to include click-through in our emails. UPDATED YouTube Video
  What is the MaxBulk Mailer privacy policy? UPDATED Screenshot

  [Valid RSS]  Subscribe to Maxprog's Knowledge Base

MaxBulk Mailer is a full-featured and easy-to-use bulk mailer and mail-merge software for macOS and Windows that allows you to send out customized press releases, prices lists, newsletters and any kind of text or HTML documents to your customers or contacts.

MaxBulk Mailer is fast, fully customizable and very easy to use. MaxBulk Mailer handles plain text, HTML and rich text documents and gives full support for attachments. With MaxBulk Mailer you will create, manage and send your own powerful, personalized marketing message to your customers and potential customers.

Thanks to its advanced mail-merge and conditional functions you can send highly customized messages and get the best results of your campaigns. You also have support for international characters, a straightforward account manager with support for all type of authentication schemes including SSL, a complete and versatile list manager, support for importation from a wide range of sources including from remote mySQL and postgreSQL databases.

MaxBulk Mailer is a software tool that you purchase once, no need to pay on a per-email basis to submission services!

   Currency  70.00
59.99   
 

   
🔐 Site secured by Comodo SSL
  🟢 UptimeRobot - Site Loaded properly