Apply a Signature Based on Recipient Domain

In some scenarios, you may want to apply a specific signature only when the email is sent to a particular domain. This can be achieved by creating a Rule in the Crossware Designer Portal that checks the sender’s domain and applies the correct signature accordingly.


Create a Rule

  1. Sign in to the Crossware Portal and navigate to the Rules section.

  2. Create a new rule (e.g., DomainSelection).

  3. Click the CUSTOM tab and add the C# script provided below.

C#
List < string > strList = new List < string > ();
strList.Add("@gmail.com");
strList.Add("@crossware365.com");

if (EmailProperties.ContainsKey("SMTPRCPTTO")) {
  foreach(string strItem in strList) {
    if (EmailProperties["SMTPRCPTTO"].IndexOf(strItem, StringComparison.OrdinalIgnoreCase) >= 0) {
      return false;
    }
  }
}
return true;
  • Replace gmail.com and crossware365.com with the domain you want to check.

  • This rule will evaluate the sender’s domain and return true only if it matches.

image-20260304-234956.png


Order Signature Priority

  • Go to the Order of Selection to ensure your rule-linked signature is evaluated before default signatures.


Test the Setup

  • Send a test email from the specified domain.

  • Confirm that the signature is properly appended only when the recipient’s domain meets the rule criteria.


Crossware automatically applies the signature based on the recipient domain.