SpamAnalyzerTest Method

Analyses the message and returns the probability of the message being spam.

Namespace:  Aspose.Email.AntiSpam
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 20.2
Syntax
public double Test(
	MailMessage message
)

Parameters

message
Type: Aspose.EmailMailMessage
MailMessage for test the probability of the message being spam.

Return Value

Type: Double
A double value in 0-1 range, where 0 corresponds to "definitely non-spam" (0% spam probability) and 1 corresponds to "definitely spam" (100% spam probability).
Exceptions
ExceptionCondition
ArgumentNullExceptionIf message is null.
See Also