Prevent emails with banned words from being sent

Prevent emails with banned words from being sent vtiger

This feature was added on November 12, 2024. To use it, please ensure you have installed or updated our FREE Emails extension to version 0.32.

 

Description

The newly added feature allows you to prevent emails from being sent if they contain banned words that you define. You can also choose to block emails entirely based on specific templates from Email Maker, PDF Maker, and Email Marketing. If a banned word appears in the content or body of an email, it will not be sent to the recipient.

This feature is ideal for maintaining professional communication with clients, avoiding offensive language, or blocking certain emails from being sent entirely.

Key benefits:

  • Keep control over your outgoing emails
  • Supports workflows
  • Works seamlessly with PDF Maker, Email Maker, and Email Marketing extensions
  • Allows you to define multiple banned words, not just one
  • Option to prevent emails from being sent based on the template used
  • Emails blocked from sending are still created in the system under the Emails extension, allowing you to review the reason they weren’t sent

What is required?

  • Emails extension version 0.32 or higher required
  • Our extensions that use mailing functions, such as PDF Maker, Email Maker, and Email Marketing
  • Ensure all extensions are up to date
  • Supports Vtiger versions 7.x and 8.x
  • Installer requirements should meet recommended values

How does it work?

A/ Prevent emails from being sent with defined banned words

This feature enables you to block emails from being sent if they contain specific banned words that you define. This is useful for ensuring professional communication and avoiding the use of prohibited or sensitive language in outgoing messages.

  1. Go to Vtiger folder, open file config.inc.php
  2. Add following code with your banned word/s:

    $ITS4YouEmails_BannedWords = [‘word1’, ‘word2′,’word3’,];

  3. Save the config.inc.php file

Now, when you try to send an email—let’s say via Email Maker—and the template or body content includes the word “bannedword,” the email will not be sent, and the following message will appear:

 

B/ Prevent emails from being sent at all for specific template

Prevents emails from being sent entirely for a specific template by using the following code: #ITS4YouEmails_Do_Not_Send_Mail#

  1. Open any template you want and add to body code

    #ITS4YouEmails_Do_Not_Send_Mail#

  2. Save the template.
  3. Go to record module and try to send email using a template we defined code in.

Following message should appear:

Share this post

Leave a Reply

Your email address will not be published. Required fields are marked *