cancel
Showing results for 
Search instead for 
Did you mean: 
imtrying
Level 10

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

Jump to solution

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

0 Kudos
1 Solution

Accepted Solutions
eelsasser
Level 15

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

Jump to solution

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>

0 Kudos
2 Replies
imtrying
Level 10

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

Jump to solution

Any Ideas?

0 Kudos
eelsasser
Level 15

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

Jump to solution

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>

0 Kudos