2 Replies Latest reply on Mar 6, 2012 4:25 PM by eelsasser

    Building a string using multiple properties with the Send.Mail property

      Is is possible to build a string using the properties and the string fields.  I would like to have the body of the message to include a string as well as multiple properties.

       

      For example:

      $Authenticated.username$ accessed $URL$  where accessed is the only string value and the others are built in properties.

       

      Thanks

        • 2. Re: Building a string using multiple properties with the Send.Mail property

          It's just like a log line:

           

          Set User-Defined.notificationMessage = "Site Review Request:"
          + String.CRLF
          + "Date: "
          + DateTime.ToISOString
          + String.CRLF
          + "UserName: "
          + Authentication.UserName

          + String.CRLF
          + "Realm: "
          + Authentication.Realm

          + String.CRLF
          + "ClientIP: "
          + IP.ToString(Client.IP)

          + String.CRLF
          + "URL: "
          + URL
          + String.CRLF
          + "Categories: "
          + List.OfCategory.ToString (URL.Categories)
          + String.CRLF
          + "Reputation: "
          + URL.ReputationString

          + String.CRLF
          + "RuleSetName: "
          + Rules.CurrentRuleSet.Name

          + String.CRLF
          + "RuleName: "
          + StriRules.CurrentRule.Name

          + String.CRLF
          + "BlockReason: "
          + Block.Reason

          + String.CRLF
          + "BlockID: "
          + Block.ID

          + String.CRLF
          + "VirusName: "
          + List.OfString.ToString (Antimalware.VirusNames)

          + String.CRLF
          + "HeaderMediaType: "
          + String.Base64Decode (URL.GetParameter ("HeaderMediaType"))
          + String.CRLF
          + "------------------------------------------------------------"

           

          Email.Send ("Admin Email Address Here", String.Concat ("notification from: ", System.HostName), User-Defined.notificationMessage)<EmailConfiguration>